From 3e9c867677850f3d906f542c6a13acf1b69b4619 Mon Sep 17 00:00:00 2001 From: nagyrobi Date: Sat, 28 Sep 2013 20:55:48 +0200 Subject: Update asterisk_log.php Fixed missing paranthesis. --- config/asterisk/asterisk_log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/asterisk/asterisk_log.php') 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.') ; -- cgit v1.2.3