error logging to file fails because of typo, fixes #80
[phpfspot.git] / phpfspot.class.php
index f54a5d69c7a9a96c72d01409c64486b9d67f98f1..18c1c52c3526413d029857ca263de624b576cd4c 100644 (file)
@@ -2579,7 +2579,7 @@ class PHPFSPOT {
             error_log($text);
             break;
          case 'logfile':
-            error_log($text, 3, $his->cfg->log_file);
+            error_log($text, 3, $this->cfg->log_file);
             break;
       }
 
@@ -3780,6 +3780,22 @@ class PHPFSPOT {
 
    } // get_photo_version_name()
 
+   /**
+    */
+   public function is_valid_width($image_width)
+   {
+      if(in_array($image_width,
+         Array($this->cfg->thumb_width,
+               $this->cfg->photo_width,
+               $this->cfg->mini_width,
+               30)))
+
+         return true;
+
+      return false;
+
+   } // is_valid_width()
+
 } // class PHPFSPOT
 
 ?>