projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f59126
)
Suppress error if fakeFile cannot be created.
author
Chris Burgess
<chris@giantrobot.co.nz>
Sun, 16 Jul 2017 22:30:55 +0000
(10:30 +1200)
committer
Chris Burgess
<chris@giantrobot.co.nz>
Sun, 16 Jul 2017 22:30:55 +0000
(10:30 +1200)
CRM-20885
CRM/Utils/File.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/File.php
b/CRM/Utils/File.php
index f377b742cd17a616bc920a49a69542824718fac7..85d54e9e4411219306ff2fb512b8ef66f076e078 100644
(file)
--- a/
CRM/Utils/File.php
+++ b/
CRM/Utils/File.php
@@
-303,7
+303,7
@@
class CRM_Utils_File {
if (!$fileName) {
$fileName = 'delete-this-' . CRM_Utils_String::createRandom(10, CRM_Utils_String::ALPHANUMERIC);
}
- $success = file_put_contents($dir . $fileName, $contents);
+ $success =
@
file_put_contents($dir . $fileName, $contents);
return ($success === FALSE) ? FALSE : $fileName;
}