<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
There is no advantage to this change, it makes it less clear and
relying on
<meta charset="utf-8">
type juggling to always do as intended is risky and not recommended.<br>
<br>
Tim<br>
<br>
<div class="moz-cite-prefix">On 01/05/2015 23:08, <a class="moz-txt-link-abbreviated" href="mailto:andy@sucs.org">andy@sucs.org</a>
wrote:<br>
</div>
<blockquote cite="mid:E1YoJ6S-0005c9-3n@silver.sucs.swan.ac.uk"
type="cite">
<pre wrap="">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']);
_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.sucs.org">Devel@lists.sucs.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sucs.org/mailman/listinfo/devel">http://lists.sucs.org/mailman/listinfo/devel</a>
</pre>
</blockquote>
<br>
</body>
</html>