mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-23 17:42:15 -05:00
suppression doublon du code pour la requête
This commit is contained in:
parent
3c8d80aec5
commit
3e188a7c8d
12
index.php
12
index.php
@ -25,16 +25,8 @@ switch ($action)
|
|||||||
|
|
||||||
$parametres_url = prepare_url($url);
|
$parametres_url = prepare_url($url);
|
||||||
|
|
||||||
try
|
$sql_action = 'INSERT INTO entries ( url, title, content ) VALUES (?, ?, ?)';
|
||||||
{
|
$params_action = array($url, $parametres_url['title'], $parametres_url['content']);
|
||||||
# insert query
|
|
||||||
$query = $db->getHandle()->prepare('INSERT INTO entries ( url, title, content ) VALUES (?, ?, ?)');
|
|
||||||
$query->execute(array($url, $parametres_url['title'], $parametres_url['content']));
|
|
||||||
}
|
|
||||||
catch (Exception $e)
|
|
||||||
{
|
|
||||||
error_log('insert query error : '.$e->getMessage());
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'delete':
|
case 'delete':
|
||||||
|
Loading…
Reference in New Issue
Block a user