[Sungrazr-svn] [110] Sungrazr_Server_Api: [FIX] eliminate E_STRICT warnings

0 views
Skip to first unread message

cl...@killersoft.com

unread,
Dec 31, 2007, 12:34:49 AM12/31/07
to Sungra...@googlegroups.com
Revision
110
Author
clay
Date
2007-12-30 21:34:48 -0800 (Sun, 30 Dec 2007)

Log Message

Sungrazr_Server_Api: [FIX] eliminate E_STRICT warnings

Modified Paths

Diff

Modified: trunk/Sungrazr/Server/Api.php (109 => 110)


--- trunk/Sungrazr/Server/Api.php	2007-12-28 05:21:38 UTC (rev 109)
+++ trunk/Sungrazr/Server/Api.php	2007-12-31 05:34:48 UTC (rev 110)
@@ -168,7 +168,9 @@
         $ns = '';
         if (! empty($namespace)) {
             if ($namespace == 'auto') {
-                $ns = strtolower(end(explode('_', $class))) . '.';
+                $parts = explode('_', $class);
+                $last = end($parts);
+                $ns = strtolower($last) . '.';
             } else {
                 $ns = (string) $namespace . '.';
             }
Reply all
Reply to author
Forward
0 new messages