]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added correct null check. Created noisey errors on fresh install.
authorEric Helgeson <erichelgeson@gmail.com>
Wed, 5 Aug 2009 03:11:20 +0000 (22:11 -0500)
committerEric Helgeson <erichelgeson@gmail.com>
Wed, 5 Aug 2009 03:11:20 +0000 (22:11 -0500)
$id is not defined, should be $this->id

classes/Design.php

index 43544f1c9d54e8bcf2cb37fb56103960335c6717..b53096aa289fe0c2367188dcea0aa88abdff8da9 100644 (file)
@@ -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;
         }