summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib/Hooks.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-10 14:05:14 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-01 13:56:12 +0200
commit1e2de86c3ada8599cf6999abc1b1223d2d886430 (patch)
tree61459058793912b0bb5638e320f3e69b9341998a /apps/files_versions/lib/Hooks.php
parent89238164e12ba8532cdefed16a789cbd4e4efde5 (diff)
downloadnextcloud-server-1e2de86c3ada8599cf6999abc1b1223d2d886430.tar.gz
nextcloud-server-1e2de86c3ada8599cf6999abc1b1223d2d886430.zip
Fix comparisons in the versions app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_versions/lib/Hooks.php')
-rw-r--r--apps/files_versions/lib/Hooks.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_versions/lib/Hooks.php b/apps/files_versions/lib/Hooks.php
index 3753d8b5016..a9ebb153eff 100644
--- a/apps/files_versions/lib/Hooks.php
+++ b/apps/files_versions/lib/Hooks.php
@@ -57,7 +57,7 @@ class Hooks {
if (\OCP\App::isEnabled('files_versions')) {
$path = $params[\OC\Files\Filesystem::signal_param_path];
- if($path<>'') {
+ if($path !== '') {
Storage::store($path);
}
}
@@ -75,7 +75,7 @@ class Hooks {
if (\OCP\App::isEnabled('files_versions')) {
$path = $params[\OC\Files\Filesystem::signal_param_path];
- if($path<>'') {
+ if($path !== '') {
Storage::delete($path);
}
}
@@ -87,7 +87,7 @@ class Hooks {
*/
public static function pre_remove_hook($params) {
$path = $params[\OC\Files\Filesystem::signal_param_path];
- if($path<>'') {
+ if($path !== '') {
Storage::markDeletedFile($path);
}
}
@@ -104,7 +104,7 @@ class Hooks {
if (\OCP\App::isEnabled('files_versions')) {
$oldpath = $params['oldpath'];
$newpath = $params['newpath'];
- if($oldpath<>'' && $newpath<>'') {
+ if($oldpath !== '' && $newpath !== '') {
Storage::renameOrCopy($oldpath, $newpath, 'rename');
}
}
@@ -122,7 +122,7 @@ class Hooks {
if (\OCP\App::isEnabled('files_versions')) {
$oldpath = $params['oldpath'];
$newpath = $params['newpath'];
- if($oldpath<>'' && $newpath<>'') {
+ if($oldpath !== '' && $newpath !== '') {
Storage::renameOrCopy($oldpath, $newpath, 'copy');
}
}