[geeklog-cvs] geeklog: Fixed setMaxDimensions() - yay for unit tests

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Jul 25 11:26:57 EDT 2010


changeset 7955:6e081d4eb47d
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/6e081d4eb47d
user: Dirk Haun <dirk at haun-online.de>
date: Sun Jul 25 17:23:43 2010 +0200
description:
Fixed setMaxDimensions() - yay for unit tests

diffstat:

 system/classes/upload.class.php |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3d5c340c8ab2 -r 6e081d4eb47d system/classes/upload.class.php
--- a/system/classes/upload.class.php	Sat Jul 24 19:35:52 2010 +0200
+++ b/system/classes/upload.class.php	Sun Jul 25 17:23:43 2010 +0200
@@ -842,7 +842,7 @@
     */
     function setMaxDimensions($width_pixels, $height_pixels)
     {
-        if (!is_numeric($width_pixels) AND !is_numeric($height_pixels)) {
+        if (!is_numeric($width_pixels) OR !is_numeric($height_pixels)) {
             return false;
         }
 



More information about the geeklog-cvs mailing list