Commit 4589c9c5 authored by Dries's avatar Dries
Browse files

- Small improvement.
parent c5bb7c3e
......@@ -218,7 +218,7 @@ function import_refresh($feed) {
$items[] = "iid = '$item->iid'";
}
if ($items) {
if (sizeof($items) > 50) {
db_query("DELETE FROM item WHERE ". implode(" OR ", array_slice($items, 0, - 50)));
}
......
......@@ -218,7 +218,7 @@ function import_refresh($feed) {
$items[] = "iid = '$item->iid'";
}
if ($items) {
if (sizeof($items) > 50) {
db_query("DELETE FROM item WHERE ". implode(" OR ", array_slice($items, 0, - 50)));
}
......
......@@ -218,7 +218,7 @@ function import_refresh($feed) {
$items[] = "iid = '$item->iid'";
}
if ($items) {
if (sizeof($items) > 50) {
db_query("DELETE FROM item WHERE ". implode(" OR ", array_slice($items, 0, - 50)));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment