Horde_Perms_Ui: make $info passed by reference
authorBen Klang <ben@alkaloid.net>
Thu, 31 Dec 2009 21:05:00 +0000 (16:05 -0500)
committerBen Klang <ben@alkaloid.net>
Thu, 31 Dec 2009 21:11:33 +0000 (16:11 -0500)
This is required to allow the setup form to populate the info array from the validated form.  $info is referenced later in horde/admin/perms/addchild.php.

framework/Perms/lib/Horde/Perms/Ui.php

index 2e2f34e..9c36622 100644 (file)
@@ -213,12 +213,12 @@ class Horde_Perms_Ui
     /**
      * Function to validate any add form input.
      *
-     * @param TODO $info  TODO
+     * @param array &$info  Ref to hold info from the form
      *
      * @return mixed  Either false if the form does not validate correctly or
      *                an array with all the form values.
      */
-    public function validateAddForm($info)
+    public function validateAddForm(&$info)
     {
         if (!$this->_form->validate($this->_vars)) {
             return false;