From 365ecec28fd89df14d2f67211583fdcc6d593176 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 11 Feb 2018 15:51:42 -0600 Subject: [PATCH] Bugfix: the trait t_base_return_message get_message() returns incorrect variable The message is being stored in the variable $message, not $value. --- common/base/classes/base_return.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/common/base/classes/base_return.php b/common/base/classes/base_return.php index 2e52948..4801c93 100644 --- a/common/base/classes/base_return.php +++ b/common/base/classes/base_return.php @@ -216,13 +216,18 @@ trait t_base_return_message { } /** - * Return the value. + * Return the message. * - * @return $value - * This can be anything that is to be considered a return value. + * @return string + * A message string is returned. + * If no message is assigned, an empty string is returned. */ public function get_message() { - return $this->value; + if (is_string($this->message)) { + return $this->message; + } + + return ''; } } -- 1.8.3.1