[git] web/doc-editor.git branch master updated. a44a019

From: Date: Thu, 23 Feb 2012 13:33:55 +0000
Subject: [git] web/doc-editor.git branch master updated. a44a019
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9651@lists.php.net to get a copy of this message
The branch, master on web/doc-editor.git has been updated via a44a0195c087515f12aec78411d748d3b0d6cf65 (commit) from a30eeefccc94ec66a611f99eeaa027ed814eff92 (commit) http://git.php.net/?p=web/doc-editor.git;a=log;h=a44a0195c087515f12aec78411d748d3b0d6cf65;hp=a30eeefccc94ec66a611f99eeaa027ed814eff92 Summary of changes: install/migration_sql.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) -- Log ---------------------------------------- commit a44a0195c087515f12aec78411d748d3b0d6cf65 Author: Alexander Moskaliov <irker@php.net> Date: Thu Feb 23 17:25:24 2012 +0400 small fix to micgration script diff --git a/install/migration_sql.php b/install/migration_sql.php index f26ab58..a70a6f2 100644 --- a/install/migration_sql.php +++ b/install/migration_sql.php @@ -16,7 +16,7 @@ $r = $conn->query('SELECT id,user,anonymousIdent,project FROM work', a $count = 0; while ($a = $r->fetch_assoc()) { if (preg_match('/^anonymous\s\#(\d+)$/', $a['user'], $matches)) { - $id = $matches[0]; + $id = $matches[1]; } else { $s = 'SELECT userID FROM users WHERE project = "%s" AND vcs_login = "%s" AND anonymousIdent = "%s"'; $params = array($a['project'], $a['user'], $a['anonymousIdent']); @@ -37,7 +37,7 @@ $r = $conn->query('SELECT id,user,anonymousIdent,project FROM patches' $count = 0; while ($a = $r->fetch_assoc()) { if (preg_match('/^anonymous\s\#(\d+)$/', $a['user'], $matches)) { - $id = $matches[0]; + $id = $matches[1]; } else { $s = 'SELECT userID FROM users WHERE project = "%s" AND vcs_login = "%s" AND anonymousIdent = "%s"'; $params = array($a['project'], $a['user'], $a['anonymousIdent']); @@ -56,4 +56,4 @@ print $conn->query('SELECT count(*) as cnt FROM patches WHERE userID>0', array //ALTER TABLE work DROP user, DROP anonymousIdent; //ALTER TABLE patches DROP user, DROP anonymousIdent; -?> \ No newline at end of file +?> Thank you for your contribution.

« previous php.doc.cvs (#9651) next »