From: moodler Date: Sun, 25 May 2003 12:14:15 +0000 (+0000) Subject: More robust check for $CFG->backup_version X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c4ad9158e303fb35ecfb0a94e2537b043e58de84;p=moodle.git More robust check for $CFG->backup_version --- diff --git a/files/index.php b/files/index.php index 31cecb1deb..cc1da5cd4b 100644 --- a/files/index.php +++ b/files/index.php @@ -736,7 +736,7 @@ function displaydir ($wdir) { } else if ($icon == "zip.gif") { $edittext = "$strunzip "; $edittext .= "$strlist "; - if ($CFG->backup_version && isadmin()) { + if (!empty($CFG->backup_version) && isadmin()) { $edittext .= "$strrestore "; } } else {