Skip to content
Snippets Groups Projects
Commit 1f4d6896 authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Wrong version comparison in update.php.

parent 258df5ee
No related branches found
No related tags found
No related merge requests found
<?php <?php
$installedVersion=OCP\Config::getAppValue('contacts', 'installed_version'); $installedVersion=OCP\Config::getAppValue('contacts', 'installed_version');
if (version_compare($installedVersion, '0.2.90', '<')) { if (version_compare($installedVersion, '0.2.3', '<')) {
// First set all address books in-active. // First set all address books in-active.
$stmt = OCP\DB::prepare( 'UPDATE *PREFIX*contacts_addressbooks SET active=0' ); $stmt = OCP\DB::prepare( 'UPDATE *PREFIX*contacts_addressbooks SET active=0' );
$result = $stmt->execute(array()); $result = $stmt->execute(array());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment