mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Coding standards
This commit is contained in:
@@ -55,7 +55,7 @@ class patch_320f implements patchInterface
|
||||
function apply(base &$appbox)
|
||||
{
|
||||
$feeds = array();
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
$sql = 'ALTER TABLE `ssel` ADD `migrated` INT NOT NULL DEFAULT "0"';
|
||||
@@ -65,9 +65,9 @@ class patch_320f implements patchInterface
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$sql = 'SELECT ssel_id, usr_id, name, descript, pub_date
|
||||
, updater, pub_restrict, homelink
|
||||
FROM ssel WHERE (public = "1" or homelink="1") and migrated = 0';
|
||||
@@ -123,7 +123,7 @@ class patch_320f implements patchInterface
|
||||
}
|
||||
}
|
||||
|
||||
$sql = 'UPDATE ssel SET deleted = "1", migrated="1"
|
||||
$sql = 'UPDATE ssel SET deleted = "1", migrated="1"
|
||||
WHERE ssel_id = :ssel_id';
|
||||
$stmt = $appbox->get_connection()->prepare($sql);
|
||||
$stmt->execute(array(':ssel_id' => $row['ssel_id']));
|
||||
|
Reference in New Issue
Block a user