mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
cleaned up the errors for initial try at 0.9.3pre?
This commit is contained in:
parent
443ae65668
commit
dadcaeb28b
@ -241,6 +241,7 @@
|
||||
}
|
||||
|
||||
function update_owner($table,$field){
|
||||
global $db;
|
||||
$db->query("select distinct($field) from $table");
|
||||
if ($db->num_rows()) {
|
||||
while($db->next_record()) {
|
||||
|
@ -230,6 +230,7 @@
|
||||
}
|
||||
|
||||
function update_owner($table,$field){
|
||||
global $db;
|
||||
$db->query("select distinct($field) from $table");
|
||||
if ($db->num_rows()) {
|
||||
while($db->next_record()) {
|
||||
@ -238,7 +239,7 @@
|
||||
for($i=0;$i<count($owner);$i++) {
|
||||
$db->query("select account_id From accounts where account_lid='".$owner[$i]."'");
|
||||
$account_id[$i] = $db->f("account_id");
|
||||
$db->query("update $table set $field=".$account_id[$i]. where $field='".$owner[$i]."'");
|
||||
$db->query("update $table set $field=".$account_id[$i]." where $field='".$owner[$i]."'");
|
||||
}
|
||||
}
|
||||
$db->query("alter table $table change $field $field int(11) NOT NULL");
|
||||
|
Loading…
Reference in New Issue
Block a user