binext: fix crash on non-existent exiftool
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/653/head
parent
900b218294
commit
5eb6115680
|
@ -131,11 +131,10 @@ class BinExt
|
|||
// get target file path
|
||||
$path = realpath(__DIR__."/../../exiftool-bin/exiftool-{$arch}-{$libc}");
|
||||
|
||||
// Set config
|
||||
Util::setSystemConfig('memories.exiftool', $path);
|
||||
|
||||
// make sure it exists
|
||||
if (file_exists($path)) {
|
||||
if ($path && file_exists($path)) {
|
||||
Util::setSystemConfig('memories.exiftool', $path);
|
||||
|
||||
return $path;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue