Changeset 1821

Show
Ignore:
Timestamp:
01/26/2008 04:11:06 AM (9 months ago)
Author:
Geert
Message:
  • Removing database.show_errors from comments as well
  • Minor optimization to Validation lib
Location:
trunk/system
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/config/database.php

    r1818 r1821  
    1111 * 
    1212 * Group Options: 
    13  *  show_errors   - Enable or disable database exceptions 
    1413 *  benchmark     - Enable or disable database benchmarking 
    1514 *  persistent    - Enable or disable a persistent connection 
  • trunk/system/libraries/Validation.php

    r1816 r1821  
    372372                        { 
    373373                                $rule   = $match[1]; 
    374                                 $params = preg_split('/(?<!\\\\)(\,)/', $match[2]); 
     374                                $params = preg_split('/(?<!\\\\),/', $match[2]); 
    375375                                $params = str_replace('\,', ',', $params); 
    376376                        } 
     
    11411141 
    11421142                                if ($low == 'FALSE' AND $num <= (float) $high) 
    1143                                 { 
    11441143                                        return TRUE; 
    1145                                 } 
    1146                                 elseif ($high == 'FALSE' AND $num >= (float) $low) 
    1147                                 { 
     1144 
     1145                                if ($high == 'FALSE' AND $num >= (float) $low) 
    11481146                                        return TRUE; 
    1149                                 } 
    1150                                 elseif ($num >= (float) $low AND $num <= (float) $high) 
    1151                                 { 
     1147 
     1148                                if ($num >= (float) $low AND $num <= (float) $high) 
    11521149                                        return TRUE; 
    1153                                 } 
    11541150                        } 
    11551151                }