Sungrazr_Server_Api: [FIX] eliminate E_STRICT warnings
--- 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 . '.';
}