From 7f6144a6c31d85cd3660857355fc5461eb20ec52 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 4 Dec 2007 00:19:45 +0000 Subject: Stop spewing to stdout, this should be logged. --- etc/inc/pfsense-utils.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 4cccafa..c598e98 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -2506,7 +2506,8 @@ function sync_webgui_passwords() { if (!$crypted_pw) { log_error("Error: cannot determine root pwd in sync_webgui_passwords().\nRoot user struct follows:\n"); - empty($root) ? log_error("Unable to determine root user!\n") : print_r($root); + if(!$root) + log_error("Unable to determine root user" . print_r($root, true)); log_error("Testing whether your system has the necessary users... "); empty($config['system']['user']) ? log_error("users are missing.\n") : log_error("users found.\n"); return 1; -- cgit v1.1