]> source.dussan.org Git - nextcloud-server.git/commitdiff
improve get_temp_dir() implementation
authorRobin Appelman <icewind1991@gmail.com>
Tue, 22 Nov 2011 00:48:08 +0000 (01:48 +0100)
committerRobin Appelman <icewind@owncloud.com>
Tue, 21 Feb 2012 19:48:48 +0000 (20:48 +0100)
lib/base.php

index 880645ff79d124c70b45ebf0dcb552a05da0adfc..5b6ed9bcb1f0761acef0aafe1a64b4fd9ee2c86b 100644 (file)
@@ -271,6 +271,8 @@ if(!function_exists('get_temp_dir')) {
                        unlink($temp);
                        return dirname($temp);
                }
+               if( $temp=sys_get_temp_dir())    return $temp;
+               
                return null;
        }
 }