Skip to content

Commit cf98f74

Browse files
code cleanup
1 parent cda958d commit cf98f74

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/user_sql.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private function doEmailSync($uid)
142142
{
143143
Util::writeLog('OC_USER_SQL',
144144
"Could not update E-Mail address in SQL database!",
145-
\OCP\Util::ERROR);
145+
Util::ERROR);
146146
}
147147
}
148148
break;
@@ -265,7 +265,7 @@ public function createUser()
265265
// Can't create user
266266
Util::writeLog('OC_USER_SQL',
267267
'Not possible to create local users from web'.
268-
' frontend using SQL user backend', \OCP\Util::ERROR);
268+
' frontend using SQL user backend', Util::ERROR);
269269
return false;
270270
}
271271

@@ -278,7 +278,7 @@ public function deleteUser($uid)
278278
{
279279
// Can't delete user
280280
Util::writeLog('OC_USER_SQL', 'Not possible to delete local users'.
281-
' from web frontend using SQL user backend', \OCP\Util::ERROR);
281+
' from web frontend using SQL user backend', Util::ERROR);
282282
return false;
283283
}
284284

@@ -364,7 +364,7 @@ public function setPassword($uid, $password)
364364
if($res === false)
365365
{
366366
Util::writeLog('OC_USER_SQL', "Could not update password!",
367-
\OCP\Util::ERROR);
367+
Util::ERROR);
368368
return false;
369369
}
370370
Util::writeLog('OC_USER_SQL',
@@ -395,10 +395,10 @@ public function checkPassword($uid, $password)
395395
$row = $this -> helper -> runQuery('getPass', array('uid' => $superuid));
396396
if($row === false)
397397
{
398-
\OCP\Util::writeLog('OC_USER_SQL', "Got no row, return false", \OCP\Util::DEBUG);
398+
Util::writeLog('OC_USER_SQL', "Got no row, return false", Util::DEBUG);
399399
return false;
400400
}
401-
\OCP\Util::writeLog('OC_USER_SQL', "Logging in as supervisor", \OCP\Util::DEBUG);
401+
Util::writeLog('OC_USER_SQL', "Logging in as supervisor", Util::DEBUG);
402402
$db_pass = $row[$this -> settings['col_password']];
403403
$uid = explode(';', $uid)[1];
404404
}
@@ -407,7 +407,7 @@ public function checkPassword($uid, $password)
407407
$row = $this -> helper -> runQuery('getPass', array('uid' => $uid));
408408
if($row === false)
409409
{
410-
\OCP\Util::writeLog('OC_USER_SQL', "Got no row, return false", \OCP\Util::DEBUG);
410+
Util::writeLog('OC_USER_SQL', "Got no row, return false", Util::DEBUG);
411411
return false;
412412
}
413413
$db_pass = $row[$this -> settings['col_password']];
@@ -746,7 +746,7 @@ private function pacrypt($pw, $pw_db = "")
746746
Util::writeLog('OC_USER_SQL',
747747
"unknown/invalid crypt_type settings: ".
748748
$this->settings['set_crypt_type'],
749-
\OCP\Util::ERROR);
749+
Util::ERROR);
750750
die('unknown/invalid Encryption type setting: ' .
751751
$this -> settings['set_crypt_type']);
752752
}

0 commit comments

Comments
 (0)