mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Remove old code that was here for old PHP version compatibility
SVN:trunk[5995]
This commit is contained in:
@@ -6383,12 +6383,14 @@ abstract class MetaModel
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
// We need to pop the pushed archived mode before the exception is thrown, otherwise the application stays in ArchiveMode true which has caused hazardious behavior!
|
||||
// Note: When switching to PHP 5.6, we can use a finally block instead of duplicating this line.
|
||||
utils::PopArchiveMode();
|
||||
// In the finally block we will pop the pushed archived mode
|
||||
// otherwise the application stays in ArchiveMode true which has caused hazardious behavior!
|
||||
throw $e;
|
||||
}
|
||||
utils::PopArchiveMode();
|
||||
finally
|
||||
{
|
||||
utils::PopArchiveMode();
|
||||
}
|
||||
|
||||
if (empty($aRow))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user