Skip to content
Snippets Groups Projects
Commit 447e8d23 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #22961 from owncloud/fix-gdrive-on-php54

Fix compatibility with PHP 5.4
parents 30cec687 d14adb23
No related branches found
No related tags found
No related merge requests found
......@@ -265,7 +265,8 @@ class Google extends \OC\Files\Storage\Common {
foreach ($children->getItems() as $child) {
$name = $child->getTitle();
// Check if this is a Google Doc i.e. no extension in name
if (empty($child->getFileExtension())
$extension = $child->getFileExtension();
if (empty($extension)
&& $child->getMimeType() !== self::FOLDER
) {
$name .= '.'.$this->getGoogleDocExtension($child->getMimeType());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment