From c1ed4cf4751542ee030d775511eccb2c914d0c75 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 20 Jun 2011 17:33:51 -0700 Subject: [PATCH] insure that a default is set for item_id on the get_edit_form. Not sure why my testing last night didn't catch that :-/ --- 3.0/modules/contactowner/controllers/contactowner.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3.0/modules/contactowner/controllers/contactowner.php b/3.0/modules/contactowner/controllers/contactowner.php index 0a302c91..0ba096df 100644 --- a/3.0/modules/contactowner/controllers/contactowner.php +++ b/3.0/modules/contactowner/controllers/contactowner.php @@ -18,7 +18,7 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class ContactOwner_Controller extends Controller { - static function get_email_form($user_id, $item_id) { + static function get_email_form($user_id, $item_id=null) { // Determine name of the person the message is going to. $str_to_name = ""; if ($user_id == -1) { @@ -34,7 +34,7 @@ class ContactOwner_Controller extends Controller { // If item_id is set, include a link to the item. $email_body = ""; - if ($item_id <> "") { + if (!empty($item_id)) { $item = ORM::factory("item", $item_id); $email_body = "This message refers to type}s/{$item->id}") . "\">this page."; }