From c4ad9158e303fb35ecfb0a94e2537b043e58de84 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 25 May 2003 12:14:15 +0000 Subject: [PATCH] More robust check for $CFG->backup_version --- files/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5