Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F45320202
D4175.id10938.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
608 B
Referenced Files
None
Subscribers
None
D4175.id10938.diff
View Options
diff --git a/workspaces/src/Engines/Collection/FilesCollection.php b/workspaces/src/Engines/Collection/FilesCollection.php
--- a/workspaces/src/Engines/Collection/FilesCollection.php
+++ b/workspaces/src/Engines/Collection/FilesCollection.php
@@ -49,7 +49,7 @@
. $collectionId;
//Ensure directory exists. If not, creates it or throws an exception
- if (!file_exists($path) && !mkdir($path, 0700, true)) {
+ if (!file_exists($path) && !@mkdir($path, 0700, true)) {
throw new Exception("Directory doesn't exist and couldn't be created: $path");
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 22, 17:24 (7 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4024398
Default Alt Text
D4175.id10938.diff (608 B)
Attached To
Mode
D4175: Avoid to throw a PHP warning in addition to throw an exception
Attached
Detach File
Event Timeline
Log In to Comment