From: Eric Helgeson Date: Wed, 5 Aug 2009 03:11:20 +0000 (-0500) Subject: Added correct null check. Created noisey errors on fresh install. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=36e5d2b45f9ec240c0cecbb78afcce92e2962a49;p=quix0rs-gnu-social.git Added correct null check. Created noisey errors on fresh install. $id is not defined, should be $this->id --- diff --git a/classes/Design.php b/classes/Design.php index 43544f1c9d..b53096aa28 100644 --- a/classes/Design.php +++ b/classes/Design.php @@ -107,7 +107,7 @@ class Design extends Memcached_DataObject static function toWebColor($color) { - if (is_null($color)) { + if ($color == null) { return null; } @@ -115,7 +115,7 @@ class Design extends Memcached_DataObject return new WebColor($color); } catch (WebColorException $e) { // 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__); return null; }