Page MenuHomeIn-Portal Phabricator

D506.diff
No OneTemporary

File Metadata

Created
Thu, Feb 6, 11:25 AM

D506.diff

Index: core/kernel/utility/temp_handler.php
===================================================================
--- core/kernel/utility/temp_handler.php
+++ core/kernel/utility/temp_handler.php
@@ -388,11 +388,13 @@
}
}
- if (!$ids) {
- $this->savedIDs[$prefix.($special ? '.' : '').$special] = Array();
+ $prefix_special = $prefix . ($special ? '.' : '') . $special;
+
+ if ( !isset($this->savedIDs[$prefix_special]) ) {
+ $this->savedIDs[$prefix_special] = array();
}
- return $this->savedIDs[$prefix.($special ? '.' : '').$special];
+ return $this->savedIDs[$prefix_special];
}
function DeleteItems($prefix, $special, $ids, $master=null, $foreign_key=null)

Event Timeline