Mercurial > defr > drupal > core
diff modules/translation/translation.module @ 13:8b6c45761e01 6.6
Drupal 6.6
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:32:33 +0100 |
parents | 589fb7c02327 |
children | 4347c45bb494 |
line wrap: on
line diff
--- a/modules/translation/translation.module Tue Dec 23 14:32:19 2008 +0100 +++ b/modules/translation/translation.module Tue Dec 23 14:32:33 2008 +0100 @@ -1,5 +1,5 @@ <?php -// $Id: translation.module,v 1.23.2.1 2008/08/16 21:37:45 dries Exp $ +// $Id: translation.module,v 1.23.2.2 2008/10/16 11:57:52 goba Exp $ /** * @file @@ -244,8 +244,8 @@ */ function translation_remove_from_set($node) { if (isset($node->tnid)) { - if (db_result(db_query('SELECT COUNT(*) FROM {node} WHERE tnid = %d', $node->tnid)) <= 2) { - // There would only be one node left in the set: remove the set altogether. + if (db_result(db_query('SELECT COUNT(*) FROM {node} WHERE tnid = %d', $node->tnid)) == 1) { + // There is only one node left in the set: remove the set altogether. db_query('UPDATE {node} SET tnid = 0, translate = 0 WHERE tnid = %d', $node->tnid); } else {