]> granicus.if.org Git - php/commitdiff
fix tests
authorAntony Dovgal <tony2001@php.net>
Sun, 11 Mar 2007 12:54:54 +0000 (12:54 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 11 Mar 2007 12:54:54 +0000 (12:54 +0000)
ext/sybase_ct/tests/test.inc

index 48aa7d23b32c51767575226ce77966cbc79675af..8352120a5e1213418b962775936fff85d73f731c 100644 (file)
@@ -78,7 +78,8 @@
   // {{{ mixed sybase_select_single(resource dbh, string query)
   //     Fires an SQL query and returns the first value from the first row
   function sybase_select_single($dbh, $query) {
-    return array_shift(sybase_fetch_row(sybase_query($query, $dbh)));
+    $a = sybase_fetch_row(sybase_query($query, $dbh));
+    return array_shift($a);
   }
   // }}}
 ?>