[SUCS Devel] site r705 - trunk/lib

andy at sucs.org andy at sucs.org
Fri May 1 23:08:12 BST 2015


Author: andy
Date: 2015-05-01 23:08:04 +0100 (Fri, 01 May 2015)
New Revision: 705

Modified:
   trunk/lib/banana-admin.php
Log:
Removed unnecessary comparison operator

Modified: trunk/lib/banana-admin.php
===================================================================
--- trunk/lib/banana-admin.php	2015-05-01 21:51:44 UTC (rev 704)
+++ trunk/lib/banana-admin.php	2015-05-01 22:08:04 UTC (rev 705)
@@ -28,7 +28,7 @@
 
 			$why = $_POST['why'];
 
-			if ( (abs($number) <= $maxbanana ) && $number <> 0 ){
+			if ( (abs($number) <= $maxbanana ) && $number ){
 
 				$DB->Query("INSERT INTO awards (username, score, whn, who, why) VALUES (?,?,NOW(),?,?)", array($who, $number, $session->username, $why));
 				header("Location: " . $_SERVER['PHP_SELF']);




More information about the Devel mailing list