mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-06 14:15:40 -04:00
Addressed warnings when reading from new files
There were warnings when reading extensions (trying to use e.g. README and .gitignore as directories), and when reading update file. https://github.com/FreshRSS/FreshRSS/issues/733
This commit is contained in:
@@ -28,7 +28,10 @@ class FreshRSS_update_Controller extends Minz_ActionController {
|
||||
);
|
||||
} elseif (file_exists(UPDATE_FILENAME)) {
|
||||
// There is an update file to apply!
|
||||
$version = file_get_contents(join_path(DATA_PATH, 'last_update.txt'));
|
||||
$version = @file_get_contents(join_path(DATA_PATH, 'last_update.txt'));
|
||||
if (empty($version)) {
|
||||
$version = 'unknown';
|
||||
}
|
||||
$this->view->update_to_apply = true;
|
||||
$this->view->message = array(
|
||||
'status' => 'good',
|
||||
|
||||
Reference in New Issue
Block a user