From: Kevin Day Date: Sun, 11 Feb 2018 21:51:42 +0000 (-0600) Subject: Bugfix: the trait t_base_return_message get_message() returns incorrect variable X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=365ecec28fd89df14d2f67211583fdcc6d593176;p=koopa Bugfix: the trait t_base_return_message get_message() returns incorrect variable The message is being stored in the variable $message, not $value. --- 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 ''; } }