aboutsummaryrefslogtreecommitdiffstats
path: root/config/siproxd/siproxd_registered_phones.php
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-11-21 13:28:22 +0100
committerdoktornotor <notordoktor@gmail.com>2015-11-21 13:28:22 +0100
commitc099f638fc0ed1bf264a4810fb2c5cd36dfa3392 (patch)
treeb11dbae0b4317e5d938e4438a3c1588a20fbdb60 /config/siproxd/siproxd_registered_phones.php
parent9137da9532f1c3c031429ee5db49b7d097e6c297 (diff)
downloadpfsense-packages-c099f638fc0ed1bf264a4810fb2c5cd36dfa3392.tar.gz
pfsense-packages-c099f638fc0ed1bf264a4810fb2c5cd36dfa3392.tar.bz2
pfsense-packages-c099f638fc0ed1bf264a4810fb2c5cd36dfa3392.zip
Do not produce warnings when registrations file does not exist
Diffstat (limited to 'config/siproxd/siproxd_registered_phones.php')
-rw-r--r--config/siproxd/siproxd_registered_phones.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/siproxd/siproxd_registered_phones.php b/config/siproxd/siproxd_registered_phones.php
index 0648aa2f..429b5338 100644
--- a/config/siproxd/siproxd_registered_phones.php
+++ b/config/siproxd/siproxd_registered_phones.php
@@ -40,8 +40,10 @@
require_once("guiconfig.inc");
-$phonetext = file_get_contents("/var/siproxd/siproxd_registrations");
-$phonedata = explode("\n", $phonetext);
+if (file_exists("/var/siproxd/siproxd_registrations")) {
+ $phonetext = file_get_contents("/var/siproxd/siproxd_registrations");
+ $phonedata = explode("\n", $phonetext);
+}
if (!is_array($phonedata)) {
$phonedata = array();