From 525ae1e7e2ab12f1903eb27f5300159c2e2cde36 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 14 Aug 2006 18:46:23 +0000 Subject: Return last entry for discover_backup() --- etc/inc/config.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etc/inc/config.inc b/etc/inc/config.inc index d664192..5f21c30 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -271,8 +271,7 @@ function discover_last_backup() { $backups = split("\n", `cd /cf/conf/backup && ls -ltr *.xml | awk '{print \$9}' | grep -v "\\.\\."`); $last_backup = ""; foreach($backups as $backup) - if($backup) - $last_backup = $backup; + $last_backup = $backup; return $last_backup; } -- cgit v1.1