mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#13244 fixed memory error
This commit is contained in:
parent
02d6dbdcdb
commit
ac3461fc04
@ -164,8 +164,12 @@ function shutdown($memory)
|
||||
unset($memory->reserve);
|
||||
|
||||
$error = error_get_last();
|
||||
if (isset($error['type']) === true && $error['type'] === 1) {
|
||||
echo __('You have no memory for this operation, increase the memory limit.');
|
||||
if (isset($error['type'])) {
|
||||
if ($error['type'] === E_ERROR) {
|
||||
if (strpos($error['message'], 'Allowed memory size') !== false) {
|
||||
echo __('You have no memory for this operation, increase the memory limit.');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user