[pLog-svn] r3111 - plog/trunk/class/template

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Fri Mar 24 03:56:31 GMT 2006


Author: jondaley
Date: 2006-03-24 03:56:31 +0000 (Fri, 24 Mar 2006)
New Revision: 3111

Modified:
   plog/trunk/class/template/cachedtemplate.class.php
Log:
fixes php notice

Modified: plog/trunk/class/template/cachedtemplate.class.php
===================================================================
--- plog/trunk/class/template/cachedtemplate.class.php	2006-03-24 03:55:42 UTC (rev 3110)
+++ plog/trunk/class/template/cachedtemplate.class.php	2006-03-24 03:56:31 UTC (rev 3111)
@@ -91,10 +91,11 @@
 		 */
 		function getCreationTimestamp()
 		{
-			$timestamp = $this->_cache_info['timestamp'];
-			
 			// if the page was just generated, smarty doesn't have this information
-			if( $timestamp == "" )
+
+            if(isset($this->_cache_info['timestamp']))
+                $timestamp = $this->_cache_info['timestamp'];
+            else
 				$timestamp = time();
 				
 			return $timestamp;



More information about the pLog-svn mailing list