[Solar-svn] Revision 3006
pmjones at solarphp.com
pmjones at solarphp.com
Mon Mar 17 20:16:59 CDT 2008
Solar_Role_Adapter: [FIX] Fix substr() in __call() method.
Modified: trunk/Solar/Role/Adapter.php
===================================================================
--- trunk/Solar/Role/Adapter.php 2008-03-17 19:55:36 UTC (rev 3005)
+++ trunk/Solar/Role/Adapter.php 2008-03-18 01:16:58 UTC (rev 3006)
@@ -106,7 +106,7 @@
*/
public function __call($method, $params)
{
- if (substr($method, 2) == 'is') {
+ if (substr($method, 0, 2) == 'is') {
// convert from isRoleName to role_name
$role = substr($method, 2);
$role = preg_replace('/([a-z])([A-Z])/', '$1_$2', $role);
More information about the Solar-svn
mailing list