[pLog-svn] r3298 - plog/trunk/class/gallery/dao

mark at devel.lifetype.net mark at devel.lifetype.net
Fri Apr 28 11:28:31 GMT 2006


Author: mark
Date: 2006-04-28 11:28:31 +0000 (Fri, 28 Apr 2006)
New Revision: 3298

Modified:
   plog/trunk/class/gallery/dao/galleryresourcestorage.class.php
Log:
We need to return the result to avoid php notice, even the file is not readable.

Modified: plog/trunk/class/gallery/dao/galleryresourcestorage.class.php
===================================================================
--- plog/trunk/class/gallery/dao/galleryresourcestorage.class.php	2006-04-28 11:20:30 UTC (rev 3297)
+++ plog/trunk/class/gallery/dao/galleryresourcestorage.class.php	2006-04-28 11:28:31 UTC (rev 3298)
@@ -331,6 +331,8 @@
 
 				if( File::isReadable( $fullName)) {
 					$result = File::delete( $fullName );
+				} else {
+					$result = false;
 				}
 				
 				// and now if preview images are available, remove them too!



More information about the pLog-svn mailing list