Bypass the php error from file_get_contents() when the release tag branch does not...
authorCindy Li <cli@ocad.ca>
Mon, 9 Aug 2010 19:14:41 +0000 (19:14 -0000)
committerCindy Li <cli@ocad.ca>
Mon, 9 Aug 2010 19:14:41 +0000 (19:14 -0000)
docs/updater/classes/Patch.class.php

index fa52c6e..701f23a 100644 (file)
@@ -457,7 +457,7 @@ class Patch {
                $local_file = $folder.$file;
 
                // if svn script does not exist, consider the script is modified
-               if (!file_get_contents($svn_file)) return true;
+               if (!@file_get_contents($svn_file)) return true;
 
                // check if the local file has been modified by user. if it is, don't overwrite
                if ($this->compareFiles($svn_file, $local_file) <> 0 && $this->patchesFilesDAO->getNumOfUpdatesOnFile($file) == 0)