DataObjects/Images.php
authorAlan Knowles <alan@roojs.com>
Fri, 15 Nov 2013 04:09:05 +0000 (12:09 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 Nov 2013 04:09:05 +0000 (12:09 +0800)
DataObjects/Images.php

index 7c7745e..bf700ec 100644 (file)
@@ -486,9 +486,9 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
         }
         // create it?
         $extra = '';
-        if (strlen($this->title) {
-            $extra = ' title="'. htmlspecialchars($this->title) . '"'
-        })
+        if (strlen($this->title)) {
+            $extra = ' title="'. htmlspecialchars($this->title) . '"';
+        }
         
         return '<img src="' . $this->URL($size, $provider) .
                 $extra .