Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F803067
D506.id1315.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 25, 5:29 AM
Size
689 B
Mime Type
text/x-diff
Expires
Wed, Feb 26, 5:29 AM (12 h, 1 m)
Engine
blob
Format
Raw Data
Handle
575927
Attached To
D506: INP-1895 Ensure consistent return type of the "kTempTablesHandler::CloneItems" method
D506.id1315.diff
View Options
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
Log In to Comment