From: <var...@us...> - 2014-10-15 16:14:06
|
Revision: 9267 http://sourceforge.net/p/phpwiki/code/9267 Author: vargenau Date: 2014-10-15 16:14:03 +0000 (Wed, 15 Oct 2014) Log Message: ----------- Check getUploadFilePath exists to avoid warning Modified Paths: -------------- trunk/lib/EditToolbar.php Modified: trunk/lib/EditToolbar.php =================================================================== --- trunk/lib/EditToolbar.php 2014-10-15 14:48:34 UTC (rev 9266) +++ trunk/lib/EditToolbar.php 2014-10-15 16:14:03 UTC (rev 9267) @@ -94,7 +94,9 @@ $key .= "+templates_" . $dbi->getTimestamp(); } if (TOOLBAR_IMAGE_PULLDOWN) { - $key .= "+images_" . filemtime(getUploadFilePath()); + if (file_exists(getUploadFilePath())) { + $key .= "+images_" . filemtime(getUploadFilePath()); + } } $id = $cache->generateId($key); $content = $cache->get($id, 'toolbarcache'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |