Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F775868
D506.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
Thu, Feb 6, 11:25 AM
Size
689 B
Mime Type
text/x-diff
Expires
Fri, Feb 7, 11:25 AM (19 h, 28 m)
Engine
blob
Format
Raw Data
Handle
558373
Attached To
D506: INP-1895 Ensure consistent return type of the "kTempTablesHandler::CloneItems" method
D506.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