Emit error message when a directory cannot be opened
authorJoey Schulze <joey@infodrom.org>
Fri, 25 Feb 2011 18:05:11 +0000 (19:05 +0100)
committerJoey Schulze <joey@infodrom.org>
Fri, 25 Feb 2011 18:05:11 +0000 (19:05 +0100)
phone.php

index 2098268..5a6de99 100644 (file)
--- a/phone.php
+++ b/phone.php
@@ -83,6 +83,8 @@ function read_directory($directory)
       }
     }
     closedir($dir);
+  } else {
+    error_log('Cannot open directory ' . SPOOL_DIR . '/' . $directory);
   }
 
   usort($result, "call_cmp");