Changeset 3121

Show
Ignore:
Timestamp:
04/14/08 20:26:31 (3 months ago)
Author:
pmjones
Message:

Solar_Controller_Page: [FIX] Per talks w/Antti Holvikari, use trim($var) != '' instead of $var to allow for a string '0' in the format.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Solar/Controller/Page.php

    r3028 r3121  
    783783         
    784784        // are we asking for a non-default format? 
    785         if ($this->_format) { 
     785        // the trim() lets us get a string-zero format. 
     786        if (trim($this->_format) != '') { 
    786787             
    787788            // what formats does the action allow? 
    788789            $action_format = $this->_getActionFormat($this->_action); 
    789          
     790             
    790791            // does the action support the requested format? 
    791792            if (in_array($this->_format, $action_format)) {