mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Avoid errors by explicitely namespacing root exception
This commit is contained in:
@@ -200,7 +200,7 @@ class ftpclient
|
||||
echo "Resume seems not to be supported, try again from scratch\n<br>";
|
||||
try {
|
||||
$this->unlink($remotefile);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
echo $e;
|
||||
}
|
||||
$ret = $this->nb_put($remotefile, $localfile, 0);
|
||||
@@ -243,7 +243,7 @@ class ftpclient
|
||||
echo "Resume seems not to be supported, try again from scratch\n<br>";
|
||||
try {
|
||||
$this->unlink($localfile);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
echo $e;
|
||||
}
|
||||
$ret = $this->nb_get($localfile, $remotefile, 0);
|
||||
|
Reference in New Issue
Block a user