Author: sevein
Date: Wed Dec 15 01:52:42 2010
New Revision: 8887
Log:
Cosmetic changes.
Modified:
trunk/lib/model/QubitSlug.php
Modified: trunk/lib/model/QubitSlug.php
==============================================================================
--- trunk/lib/model/QubitSlug.php Wed Dec 15 00:02:03 2010 (r8886)
+++ trunk/lib/model/QubitSlug.php Wed Dec 15 01:52:42 2010 (r8887)
@@ -75,12 +75,14 @@
// Try a max of 10 times before giving up (avoid infinite loops when
// possible slugs exhausted)
- for ($i=0; $i < 10; $i++)
+ for ($i = 0; $i < 10; $i++)
{
$slug = self::random();
$statement = $connection->prepare('
- SELECT COUNT(*) FROM '.QubitSlug::TABLE_NAME.' WHERE
'.QubitSlug::SLUG.' = ?;');
+ SELECT COUNT(*)
+ FROM '.QubitSlug::TABLE_NAME.'
+ WHERE '.QubitSlug::SLUG.' = ?;');
$statement->execute(array($slug));
if (0 == $statement->fetchColumn(0))
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.