aboutsummaryrefslogtreecommitdiffstats
path: root/config/asterisk/asterisk_log.php
diff options
context:
space:
mode:
authornagyrobi <robreg@zsurob.hu>2013-09-28 20:55:48 +0200
committernagyrobi <robreg@zsurob.hu>2013-09-28 20:55:48 +0200
commit3e9c867677850f3d906f542c6a13acf1b69b4619 (patch)
treee4a6887981a1c8720698a19a16a341a91b20f4a7 /config/asterisk/asterisk_log.php
parent8f491fb2f36a9a93e5e9579d55ddcbbd9b7c7df3 (diff)
downloadpfsense-packages-3e9c867677850f3d906f542c6a13acf1b69b4619.tar.gz
pfsense-packages-3e9c867677850f3d906f542c6a13acf1b69b4619.tar.bz2
pfsense-packages-3e9c867677850f3d906f542c6a13acf1b69b4619.zip
Update asterisk_log.php
Fixed missing paranthesis.
Diffstat (limited to 'config/asterisk/asterisk_log.php')
-rw-r--r--config/asterisk/asterisk_log.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/asterisk/asterisk_log.php b/config/asterisk/asterisk_log.php
index 42cf8e8b..8ff8475d 100644
--- a/config/asterisk/asterisk_log.php
+++ b/config/asterisk/asterisk_log.php
@@ -67,7 +67,7 @@ $break = Explode('/', $file);
$pfile = $break[count($break) - 1];
-if (file_exists($log) {
+if (file_exists($log)) {
if ($cmd == "trim") {
$trimres=shell_exec("tail -50 '$log' > /tmp/trimmed_asterisk.log && rm '$log' && mv /tmp/trimmed_asterisk.log '$log' && chown asterisk:asterisk '$log' && chmod g+w '$log'");
header( 'Location: asterisk_log.php?savemsg=Log+trimmed.') ;