From d5694ef84f0b003d30313ab171d88d2ebbb13e7f Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Thu, 21 May 2015 04:21:29 -0400
Subject: [PATCH] Fix issues when using moduserprefs.sh without --user argument (#1490399)

---
 bin/moduserprefs.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bin/moduserprefs.sh b/bin/moduserprefs.sh
index 3d46baa..cbbe138 100755
--- a/bin/moduserprefs.sh
+++ b/bin/moduserprefs.sh
@@ -71,7 +71,7 @@
 	$prefs[$pref_name] = $pref_value;
 
 	if ($prefs != $old_prefs) {
-		$user->save_prefs($prefs);
+		$user->save_prefs($prefs, true);
 		echo "saved.\n";
 	}
 	else {

--
Gitblit v1.9.1