forked from GNUsocial/gnu-social
Added correct null check. Created noisey errors on fresh install.
$id is not defined, should be $this->id
This commit is contained in:
parent
43eb19910f
commit
36e5d2b45f
@ -107,7 +107,7 @@ class Design extends Memcached_DataObject
|
|||||||
|
|
||||||
static function toWebColor($color)
|
static function toWebColor($color)
|
||||||
{
|
{
|
||||||
if (is_null($color)) {
|
if ($color == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ class Design extends Memcached_DataObject
|
|||||||
return new WebColor($color);
|
return new WebColor($color);
|
||||||
} catch (WebColorException $e) {
|
} catch (WebColorException $e) {
|
||||||
// This shouldn't happen
|
// This shouldn't happen
|
||||||
common_log(LOG_ERR, "Unable to create color for design $id.",
|
common_log(LOG_ERR, "Unable to create color for design $this->id.",
|
||||||
__FILE__);
|
__FILE__);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user