summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-12-04 00:19:45 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-12-04 00:19:45 +0000
commit7f6144a6c31d85cd3660857355fc5461eb20ec52 (patch)
treec95c5c7ede3cb2cc5d41bba6b70a5191a3d72193
parentf320386cd9739ec0d52916e5b76c04803d286b42 (diff)
downloadpfsense-7f6144a6c31d85cd3660857355fc5461eb20ec52.zip
pfsense-7f6144a6c31d85cd3660857355fc5461eb20ec52.tar.gz
Stop spewing to stdout, this should be logged.
-rw-r--r--etc/inc/pfsense-utils.inc3
1 files changed, 2 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud