summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEric Helgeson <erichelgeson@gmail.com>2009-08-04 22:11:20 -0500
committerEric Helgeson <erichelgeson@gmail.com>2009-08-04 22:11:20 -0500
commit36e5d2b45f9ec240c0cecbb78afcce92e2962a49 (patch)
tree51f1c0dc28d9d3f87051391575169328d782fac4 /classes
parent43eb19910f541a3b2a083f3cd02954e30e34aa35 (diff)
Added correct null check. Created noisey errors on fresh install.
$id is not defined, should be $this->id
Diffstat (limited to 'classes')
-rw-r--r--classes/Design.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/Design.php b/classes/Design.php
index 43544f1c9..b53096aa2 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;
}