[Solar-svn] Revision 3121
pmjones at solarphp.com
pmjones at solarphp.com
Mon Apr 14 20:26:33 CDT 2008
Solar_Controller_Page: [FIX] Per talks w/Antti Holvikari, use `trim($var) != ''` instead of `$var` to allow for a string '0' in the format.
Modified: trunk/Solar/Controller/Page.php
===================================================================
--- trunk/Solar/Controller/Page.php 2008-04-15 01:25:13 UTC (rev 3120)
+++ trunk/Solar/Controller/Page.php 2008-04-15 01:26:31 UTC (rev 3121)
@@ -782,11 +782,12 @@
}
// are we asking for a non-default format?
- if ($this->_format) {
+ // the trim() lets us get a string-zero format.
+ if (trim($this->_format) != '') {
// what formats does the action allow?
$action_format = $this->_getActionFormat($this->_action);
-
+
// does the action support the requested format?
if (in_array($this->_format, $action_format)) {
// action supports the format; turn off layouts by default.
More information about the Solar-svn
mailing list