lib/elFinderVolumeBox.class.php 1 location
|
@@ 570-576 (lines=7) @@
|
567 |
|
} |
568 |
|
|
569 |
|
return $res; |
570 |
|
} else { |
571 |
|
if (isset($result->type) && $result->type === 'error') { |
572 |
|
return false; |
573 |
|
} else { |
574 |
|
return $result; |
575 |
|
} |
576 |
|
} |
577 |
|
} |
578 |
|
} |
579 |
|
|
lib/elFinderVolumeOneDrive.class.php 1 location
|
@@ 1529-1533 (lines=5) @@
|
1526 |
|
|
1527 |
|
$result = json_decode(curl_exec($curl)); |
1528 |
|
curl_close($curl); |
1529 |
|
if ($result && isset($result->id)) { |
1530 |
|
return $targetDir.'/'.$result->id; |
1531 |
|
} else { |
1532 |
|
return false; |
1533 |
|
} |
1534 |
|
} catch (Exception $e) { |
1535 |
|
return $this->setError('OneDrive error: '.$e->getMessage()); |
1536 |
|
} |