summaryrefslogtreecommitdiff
path: root/bin/moduserprefs.sh
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-09-10 16:32:28 +0200
committerAleksander Machniak <alec@alec.pl>2014-09-10 16:32:28 +0200
commitdcc4469844f8ce98bd8323b684e40cf64643e5ae (patch)
tree568c1ab6bb3d402a22435376a26167dce04104cd /bin/moduserprefs.sh
parent1985eb2e6d77fcb77c95569f43e1b0f4c91bed88 (diff)
Don't init output in CLI mode
Fixes infinite recurssion on raise_error() call when executing scripts out of the INSTALL_PATH. Also use 'rcube' if 'rcmail' is not needed.
Diffstat (limited to 'bin/moduserprefs.sh')
-rwxr-xr-xbin/moduserprefs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/moduserprefs.sh b/bin/moduserprefs.sh
index 9bbc885a6..8a9725fa4 100755
--- a/bin/moduserprefs.sh
+++ b/bin/moduserprefs.sh
@@ -47,7 +47,7 @@ $pref_name = trim($args[0]);
$pref_value = $args['delete'] ? null : trim($args[1]);
// connect to DB
-$rcmail = rcmail::get_instance();
+$rcmail = rcube::get_instance();
$db = $rcmail->get_dbh();
$db->db_connect('w');