From d1d68855850022ee4dd91105f00a947029f2e4c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20M=C3=BCller?= Date: Fri, 5 Jul 2013 13:22:38 +0200 Subject: [PATCH] php 5.3 compliant now --- apps/files/ajax/upload.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index 4b015e4d1f5..733ed95974f 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -34,9 +34,10 @@ if (empty($_POST['dirToken'])) { } // The token defines the target directory (security reasons) + $sharedItem = array_pop($sharedItem); $dir = sprintf( "/%s/%s", - array_pop($sharedItem)['path'], + $sharedItem['path'], isset($_POST['subdir']) ? $_POST['subdir'] : '' ); -- 2.39.5