Changeset 3045
- Timestamp:
- 07/11/2008 02:16:17 AM (5 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Captcha.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Captcha.php
r3043 r3045 32 32 * Constructs and returns a new Captcha object. 33 33 * 34 * @param array configurationsettings34 * @param string|array config group or settings 35 35 * @return object 36 36 */ … … 44 44 * 45 45 * @throws Kohana_Exception 46 * @param array configurationsettings46 * @param string|array config group or settings 47 47 * @return void 48 48 */ … … 55 55 throw new Kohana_Exception('captcha.requires_GD2'); 56 56 57 // Only config group name given 58 if (is_string($config)) 59 { 60 $config = array('group' => $config); 61 } 57 62 // No custom config group name given 58 if ( ! isset($config['group']))63 elseif ( ! isset($config['group'])) 59 64 { 60 65 $config['group'] = 'default';
