]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-del_transfer.php
More fixes, thanks to Piter01
[mailer.git] / inc / modules / admin / what-del_transfer.php
index 3c833ba359b211c6f983110acee66edb9f0eee0a..150fa39e6dcbe823dc4ace5556f24a7d15a961b9 100644 (file)
@@ -39,7 +39,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']) || (!IS_ADMIN()))
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
 if (isset($_POST['del']))
 {
@@ -48,7 +48,7 @@ if (isset($_POST['del']))
        if ($SEL > 0)
        {
                // Delete entries...
-               foreach ($_POST['sel'] as $id=>$sel)
+               foreach ($_POST['sel'] as $id => $sel)
                {
                        $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_user_transfers_in WHERE trans_id=%s LIMIT 1",
                         array(bigintval($id)), __FILE__, __LINE__);
@@ -60,7 +60,7 @@ if (isset($_POST['del']))
 
 // We only need outgoing transfers
 $result = SQL_QUERY("SELECT userid, to_uid, trans_id, points, reason, time_trans FROM "._MYSQL_PREFIX."_user_transfers_out ORDER BY trans_id", __FILE__, __LINE__);
-$total = "0";
+$total = 0;
 if (SQL_NUMROWS($result) > 0)
 {
        // Output rows