From 467ec28d2b3985b21e9762487838ed5437d6347c Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 22 Jun 2001 01:01:23 +0000 Subject: [PATCH] Small change to properly handle setting default preferences. --- calendar/inc/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/functions.inc.php b/calendar/inc/functions.inc.php index b42503d84d..0ebeb57b5d 100755 --- a/calendar/inc/functions.inc.php +++ b/calendar/inc/functions.inc.php @@ -71,7 +71,7 @@ if(!isset($phpgw_info['user']['preferences']['calendar']['weekdaystarts'])) { - $phpgw_info['user']['preferences']['calendar']['weekdaystarts'] = 'Sunday'; + $phpgw->preferences->add('calendar','weekdaystarts','Sunday'); $phpgw->preferences->save_repository(); }