summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php
index 1016c40d6..9638fb204 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -1171,7 +1171,7 @@ function getRevisions($id){
if (is_dir($revd) && $dh = opendir($revd)) {
while (($file = readdir($dh)) !== false) {
if (substr($file, 0, $clid_len)===$clid) {
- $p = strpos($file, '.', $clid_len+1);
+ $p = @strpos($file, '.', $clid_len+1);
if (!$p===false) {
$revs[] = substr($file, $clid_len+1, $p-$clid_len-1);
}