summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-03-29 03:37:38 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2013-03-29 03:37:38 -0400
commit415880faad8a11f81787f4819823ec22115f03ed (patch)
treec4e453bb08a1c1d7a609b113679be0d93caf5688 /lib
parent42ac1b0d197a5b1b0ad50ff9a6bd43fbe7c07822 (diff)
downloadampache-415880faad8a11f81787f4819823ec22115f03ed.tar.gz
ampache-415880faad8a11f81787f4819823ec22115f03ed.tar.bz2
ampache-415880faad8a11f81787f4819823ec22115f03ed.zip
Fix infinite loop in Dba
Strong and stupid indeed.
Diffstat (limited to 'lib')
-rw-r--r--lib/class/dba.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/dba.class.php b/lib/class/dba.class.php
index 8f3bace0..bfa77773 100644
--- a/lib/class/dba.class.php
+++ b/lib/class/dba.class.php
@@ -63,7 +63,7 @@ class Dba {
$tries = 0;
do {
$stmt = self::_query($sql, $params);
- } while (!$stmt && $tries < 3);
+ } while (!$stmt && $tries++ < 3);
return $stmt;
}