|
|
|
@ -609,7 +609,11 @@ class OC_User { |
|
|
|
*/ |
|
|
|
public static function isEnabled($userid) { |
|
|
|
$sql = 'SELECT `userid` FROM `*PREFIX*preferences`' |
|
|
|
.' WHERE `userid` = ? AND `appid` = ? AND `configkey` = ? AND to_char(`configvalue`) = ?'; |
|
|
|
.' WHERE `userid` = ? AND `appid` = ? AND `configkey` = ? AND `configvalue` = ?'; |
|
|
|
if (OC_Config::getValue( 'dbtype', 'sqlite' ) === 'oci') { //FIXME oracle hack
|
|
|
|
$sql = 'SELECT `userid` FROM `*PREFIX*preferences`' |
|
|
|
.' WHERE `userid` = ? AND `appid` = ? AND `configkey` = ? AND to_char(`configvalue`) = ?'; |
|
|
|
} |
|
|
|
$stmt = OC_DB::prepare($sql); |
|
|
|
if ( ! OC_DB::isError($stmt) ) { |
|
|
|
$result = $stmt->execute(array($userid, 'core', 'enabled', 'false')); |
|
|
|
|