You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Checks whether there are messages
*/
public function has(type = null) -> bool
{
var messages;
let messages = this->getSessionMessages(false);
if typeof type != "string" {
return true;
}
return isset messages[type];
}
Sorry I don't understand why type != 'string return true,
but maybe it's possible to add something like :
if empty messages {
return false;
}
Regards,
The text was updated successfully, but these errors were encountered:
Jeckerson
added
5.0
The issues we want to solve in the 5.0 release
and removed
4.1.1
The issues we want to solve in the 4.1.1 release
labels
Mar 26, 2021
Hi,
Using
Phalcon\Flash\Session::has()
return true whereas the messages array is empty.cphalcon/phalcon/Flash/Session.zep
Line 43 in a803581
Sorry I don't understand why
type != 'string
return true,but maybe it's possible to add something like :
Regards,
The text was updated successfully, but these errors were encountered: