[Jaws-commits] r12470 - branches/0.8/html/include/Jaws

afz at jaws-project.com afz at jaws-project.com
Sun Jan 22 21:58:26 UTC 2012


Author: afz
Date: 2012-01-22 21:58:26 +0000 (Sun, 22 Jan 2012)
New Revision: 12470

Modified:
   branches/0.8/html/include/Jaws/User.php
Log:
little fix for numeric user/group name

Modified: branches/0.8/html/include/Jaws/User.php
===================================================================
--- branches/0.8/html/include/Jaws/User.php	2012-01-22 17:24:22 UTC (rev 12469)
+++ branches/0.8/html/include/Jaws/User.php	2012-01-22 21:58:26 UTC (rev 12470)
@@ -477,7 +477,7 @@
             INNER JOIN [[users]]  ON [[users]].[id] =  [[users_groups]].[user_id]
             INNER JOIN [[groups]] ON [[groups]].[id] = [[users_groups]].[group_id]
             ';
-        if (is_numeric($user)) {
+        if (is_int($user)) {
             $sql .= 'WHERE [[users]].[id] = {user}';
         } else {
             $sql .= 'WHERE [[users]].[username] = {user}';



More information about the Jaws-commits mailing list