Changeset 2221

Show
Ignore:
Timestamp:
03/05/2008 02:22:30 AM (9 months ago)
Author:
Shadowhand
Message:

Fixing a bug that would prevent form::button() from ever producing a button with a value attribute.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/form.php

    r2025 r2221  
    402402                } 
    403403 
    404                 if (isset($data['value'])) 
     404                if (isset($data['value']) AND empty($value)) 
    405405                { 
    406406                        $value = arr::remove('value', $data);