summaryrefslogtreecommitdiff
path: root/mail/squirrelmail/patches/patch-af
blob: e6c96a30235dac1c619e7f7996fb4ab3539a49cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-af,v 1.1 2005/09/20 13:19:05 schmonz Exp $

--- src/search.php.orig	2005-06-22 03:05:59.000000000 -0400
+++ src/search.php
@@ -297,7 +297,11 @@ echo html_tag( 'table',
 /*  update the recent and saved searches from the pref files  */
 $attributes = get_recent($username, $data_dir);
 $saved_attributes = get_saved($username, $data_dir);
-$saved_count = count($saved_attributes['saved_what']);
+if (isset($saved_attributes['saved_what'])) {
+    $saved_count = count($saved_attributes['saved_what']);
+} else {
+    $saved_count = 0;
+}
 $count_all = 0;
 
 /* Saved Search Table */