Changeset 1821
- Timestamp:
- 01/26/2008 04:11:06 AM (9 months ago)
- Location:
- trunk/system
- Files:
-
- 2 modified
-
config/database.php (modified) (1 diff)
-
libraries/Validation.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/config/database.php
r1818 r1821 11 11 * 12 12 * Group Options: 13 * show_errors - Enable or disable database exceptions14 13 * benchmark - Enable or disable database benchmarking 15 14 * persistent - Enable or disable a persistent connection -
trunk/system/libraries/Validation.php
r1816 r1821 372 372 { 373 373 $rule = $match[1]; 374 $params = preg_split('/(?<!\\\\) (\,)/', $match[2]);374 $params = preg_split('/(?<!\\\\),/', $match[2]); 375 375 $params = str_replace('\,', ',', $params); 376 376 } … … 1141 1141 1142 1142 if ($low == 'FALSE' AND $num <= (float) $high) 1143 {1144 1143 return TRUE; 1145 } 1146 elseif ($high == 'FALSE' AND $num >= (float) $low) 1147 { 1144 1145 if ($high == 'FALSE' AND $num >= (float) $low) 1148 1146 return TRUE; 1149 } 1150 elseif ($num >= (float) $low AND $num <= (float) $high) 1151 { 1147 1148 if ($num >= (float) $low AND $num <= (float) $high) 1152 1149 return TRUE; 1153 }1154 1150 } 1155 1151 }
