[Cs-content-commits] SF.net SVN: cs-content:[473] trunk/1.0/contentSystem.class.php
PHP Templating & Includes System
Brought to you by:
crazedsanity
From: <cra...@us...> - 2010-05-14 17:14:22
|
Revision: 473 http://cs-content.svn.sourceforge.net/cs-content/?rev=473&view=rev Author: crazedsanity Date: 2010-05-14 17:14:14 +0000 (Fri, 14 May 2010) Log Message: ----------- Suppress some PHP warnings. Modified Paths: -------------- trunk/1.0/contentSystem.class.php Modified: trunk/1.0/contentSystem.class.php =================================================================== --- trunk/1.0/contentSystem.class.php 2010-04-14 22:54:33 UTC (rev 472) +++ trunk/1.0/contentSystem.class.php 2010-05-14 17:14:14 UTC (rev 473) @@ -578,8 +578,8 @@ $filename = preg_replace('/^\/\//', '/', $filename); //call another method to rip the filename apart properly, then arrange things as needed. $pieces = $this->parse_filename($index); - $myPriIndex = $pieces[$primaryIndex]; - $mySecIndex = $pieces[$secondaryIndex]; + $myPriIndex = @$pieces[$primaryIndex]; + $mySecIndex = @$pieces[$secondaryIndex]; if(strlen($myPriIndex) && strlen($mySecIndex)) { //only load if it's got BOTH parts of the filename. $arrangedArr[$myPriIndex][$mySecIndex] = $filename; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |