]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/response/class_BaseResponse.php
Use array_push() instead of []
[core.git] / inc / classes / main / response / class_BaseResponse.php
index c8cfa4f510c80fac7008de0268f623fe04555bda..2533d7c95582f893b60de635b752141f1d604db8 100644 (file)
@@ -125,7 +125,7 @@ class BaseResponse extends BaseFrameworkSystem {
         */
        public final function addFatalMessage ($messageId) {
                // Adds the resolved message id to the fatal message list
-               $this->fatalMessages[] = $this->getApplicationInstance()->getLanguageInstance()->getMessage($messageId);
+               array_push($this->fatalMessages, $this->getApplicationInstance()->getLanguageInstance()->getMessage($messageId));
        }
 
        /**
@@ -136,7 +136,7 @@ class BaseResponse extends BaseFrameworkSystem {
         */
        public final function addFatalMessagePlain ($message) {
                // Adds the resolved message id to the fatal message list
-               $this->fatalMessages[] = $message;
+               array_push($this->fatalMessages, $message);
        }
 
        /**