aboutsummaryrefslogtreecommitdiffstats
path: root/community/backuppc/remove-deprecated-perl-defined-at.patch
blob: 471c767569548eec9b87d3f2636ae9cbe87b1697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 1261ba6d7a7ba0c973f25b8a63987360a639e16c Mon Sep 17 00:00:00 2001
From: Alexander Moisseev <moiseev@mezonplus.ru>
Date: Wed, 7 Jan 2015 15:11:49 +0300
Subject: [PATCH] Browse.pm: - Remove deprecated defined(@array) perl5160delta:
 http://perldoc.perl.org/perldiag.html#defined(@array)-is-deprecated

---
 lib/BackupPC/CGI/Browse.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/BackupPC/CGI/Browse.pm b/lib/BackupPC/CGI/Browse.pm
index 7309955..fea400f 100644
--- a/lib/BackupPC/CGI/Browse.pm
+++ b/lib/BackupPC/CGI/Browse.pm
@@ -65,7 +65,7 @@ sub action
     #
     # default to the newest backup
     #
-    if ( !defined($In{num}) && defined(@Backups) && @Backups > 0 ) {
+    if ( !defined($In{num}) && @Backups > 0 ) {
         $i = @Backups - 1;
         $num = $Backups[$i]{num};
     }