[Cs-content-commits] SF.net SVN: cs-content:[469] trunk/1.0/cs_genericPage.class.php
PHP Templating & Includes System
Brought to you by:
crazedsanity
|
From: <cra...@us...> - 2009-10-30 02:40:35
|
Revision: 469
http://cs-content.svn.sourceforge.net/cs-content/?rev=469&view=rev
Author: crazedsanity
Date: 2009-10-30 02:40:26 +0000 (Fri, 30 Oct 2009)
Log Message:
-----------
Fix PHP notices/warnings.
Modified Paths:
--------------
trunk/1.0/cs_genericPage.class.php
Modified: trunk/1.0/cs_genericPage.class.php
===================================================================
--- trunk/1.0/cs_genericPage.class.php 2009-10-23 14:58:22 UTC (rev 468)
+++ trunk/1.0/cs_genericPage.class.php 2009-10-30 02:40:26 UTC (rev 469)
@@ -86,7 +86,7 @@
}
//if there have been some global template vars (or files) set, read 'em in here.
- if(is_array($GLOBALS['templateVars']) && count($GLOBALS['templateVars'])) {
+ if(isset($GLOBALS['templateVars']) && is_array($GLOBALS['templateVars']) && count($GLOBALS['templateVars'])) {
foreach($GLOBALS['templateVars'] as $key=>$value) {
$this->add_template_var($key, $value);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|