summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-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