Project

General

Profile

« Previous | Next » 

Revision b67cdd05

Added by Matthew Smith about 11 years ago

Fix core dump on viewing invalid package log

View differences:

usr/local/www/guiconfig.inc
612 612
		$grepline .= " | /usr/bin/egrep " . escapeshellarg(implode("|", $grepfor));
613 613
	if(is_array($grepinvert))
614 614
		$grepline .= " | /usr/bin/egrep -v " . escapeshellarg(implode("|", $grepinvert));
615
	if(file_exists($logfile) && filesize($logfile) == 0) {
615
	if (is_dir($logfile)) {
616
		$logarr = array("File $logfile is a directory.");
617
	} elsif(file_exists($logfile) && filesize($logfile) == 0) {
616 618
		$logarr = array("Log file started.");
617 619
	} else {
618 620
		if($config['system']['disablesyslogclog']) {

Also available in: Unified diff