From cd4d71b41b7e3e7ea394cdbc20b7d62e4e3bc36b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 3 Apr 2013 23:24:27 +0400 Subject: updater: fix is_writable checking --- plugins/updater/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/updater') diff --git a/plugins/updater/init.php b/plugins/updater/init.php index ef5a94967..adab6bc80 100644 --- a/plugins/updater/init.php +++ b/plugins/updater/init.php @@ -42,7 +42,7 @@ class Updater extends Plugin { case 0: array_push($log, "Work directory: $work_dir"); - if (!is_writable($work_dir) && !is_writable("$parent_dir")) { + if (!is_writable($work_dir) || !is_writable("$parent_dir")) { $user = posix_getpwuid(posix_geteuid()); $user = $user["name"]; array_push($log, "Both tt-rss and parent directories should be writable as current user ($user)."); -- cgit v1.2.3