Changeset 2617

Show
Ignore:
Timestamp:
05/02/2008 11:46:22 AM (5 months ago)
Author:
Shadowhand
Message:

Small change to Kohana::key_string to allow for field.* (wildcard) in the key string

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/core/Kohana.php

    r2614 r2617  
    903903                if ((empty($keys) AND is_string($keys)) OR (empty($array) AND is_array($array))) 
    904904                        return; 
     905 
     906                if (substr($keys, -2) === '.*') 
     907                { 
     908                        // Remove the wildcard from the keys 
     909                        $keys = substr($keys, 0, -2); 
     910                } 
    905911 
    906912                // Prepare for loop