From stack-overflow: The 'var' keyword is for declaring class variables in PHP4. It works in PHP5 but can raise an E_STRICT warning in from version 5.0.0 up to version 5.1.2, as it has been deprecated.

Changing to public as that is really what these variables are anyways.
This commit is contained in:
jgen 2014-04-24 04:30:58 -04:00
parent dbe30ad37d
commit 67c087c30f

View File

@ -36,14 +36,14 @@ require_once "lib/flexihash.php";
* sound file, or any other supported upload type.
*/
class Image {
var $id = null;
var $height, $width;
var $hash, $filesize;
var $filename, $ext;
var $owner_ip;
var $posted;
var $source;
var $locked;
public $id = null;
public $height, $width;
public $hash, $filesize;
public $filename, $ext;
public $owner_ip;
public $posted;
public $source;
public $locked;
/**
* One will very rarely construct an image directly, more common