summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-28 19:18:08 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-28 19:18:08 +0000
commita938e18a1bd36d887010863817470b690fdbf6f3 (patch)
treeadbc7edb165255a47739fdbe7e0184c241f6340c /modules/system/system.install
parentff8b0618f5892d165720453efcd318b0d85a6f8c (diff)
downloadbrdo-a938e18a1bd36d887010863817470b690fdbf6f3.tar.gz
brdo-a938e18a1bd36d887010863817470b690fdbf6f3.tar.bz2
- Patch #491556 by Berdir: completed converting core to DBTNG. Oh my. Kudos to Berdir for this humongous effort.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 5c5b19eab..20f35d549 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -384,13 +384,11 @@ function system_install() {
// Built-in roles.
$rid_anonymous = db_insert('role')
- ->fields(array('name'))
- ->values(array('name' => 'anonymous user'))
+ ->fields(array('name' => 'anonymous user'))
->execute();
$rid_authenticated = db_insert('role')
- ->fields(array('name'))
- ->values(array('name' => 'authenticated user'))
+ ->fields(array('name' => 'authenticated user'))
->execute();
// Sanity check to ensure the anonymous and authenticated role IDs are the
@@ -1555,7 +1553,7 @@ function system_update_7003() {
':status' => 0,
':type' => $type,
));
- while ($blocked = db_fetch_object($result)) {
+ foreach ($result as $blocked) {
if (filter_var($blocked->mask, FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE) !== FALSE) {
$ret[] = update_sql("INSERT INTO {blocked_ips} (ip) VALUES ('$blocked->mask')");
}