From 3df182b3caadfbddf3a9d4426c79164834b85fd4 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 7 May 2014 16:04:40 -0400 Subject: Fix call-time pass-by-reference in nut, bump --- config/nut/nut.inc | 4 ++-- config/nut/nut.xml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'config/nut') diff --git a/config/nut/nut.inc b/config/nut/nut.inc index 793e24fd..11fb4b26 100644 --- a/config/nut/nut.inc +++ b/config/nut/nut.inc @@ -97,7 +97,7 @@ return true; } - function before_form_nut($pkg) { + function before_form_nut(&$pkg) { /* return available serial ports */ $serial_types = array("sio", "cua", "tty"); @@ -136,7 +136,7 @@ $field['options']['option'][] = array('name' => $names[$i], 'value' => $values[$i]); } - function validate_form_nut($post, $input_errors) { + function validate_form_nut($post, &$input_errors) { global $config; /* monitor remote validation */ diff --git a/config/nut/nut.xml b/config/nut/nut.xml index b78c9dba..210d7b82 100644 --- a/config/nut/nut.xml +++ b/config/nut/nut.xml @@ -46,7 +46,7 @@ Describe your package requirements here Currently there are no FAQ items provided. nut - 2.6.4 pkg 2.0 + 2.6.5_1 pkg 2.0.1 Services: NUT Change /status_nut.php @@ -646,10 +646,10 @@ - before_form_nut(&$pkg); + before_form_nut($pkg); - validate_form_nut($_POST, &$input_errors); + validate_form_nut($_POST, $input_errors); sync_package_nut(); -- cgit v1.2.3