librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1642] Fix wrong parameter count in call to substr


From: Jørgen Bøhnsdalen
Subject: [Librefm-commits] [1642] Fix wrong parameter count in call to substr
Date: Fri, 15 May 2009 20:18:14 +0000

Revision: 1642
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1642
Author:   jurgbohn
Date:     2009-05-15 20:18:13 +0000 (Fri, 15 May 2009)
Log Message:
-----------
Fix wrong parameter count in call to substr

Modified Paths:
--------------
    trunk/nixtape/location.php

Modified: trunk/nixtape/location.php
===================================================================
--- trunk/nixtape/location.php  2009-05-15 19:41:14 UTC (rev 1641)
+++ trunk/nixtape/location.php  2009-05-15 20:18:13 UTC (rev 1642)
@@ -25,9 +25,9 @@
 require_once('data/Server.php');
 require_once('data/User.php');
 
-if ( strtolower(substr($connect_string)) == 'mysql'  )
+if ( strtolower(substr($connect_string, 0, 5)) == 'mysql' )
        $random = 'RAND';
-elseif ( strtolower(substr($connect_string, 0, 5)) == 'mssql'  )
+elseif ( strtolower(substr($connect_string, 0, 5)) == 'mssql' )
        $random = 'NEWID';  // I don't think we try to support MSSQL, but 
here's how it's done theoretically anyway
 else
        $random = 'RANDOM';  // postgresql, sqlite, possibly others





reply via email to

[Prev in Thread] Current Thread [Next in Thread]