mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 18:50:12 +01:00
show meta query fix
This commit is contained in:
parent
8aa7508dab
commit
dce4f29bcd
@ -63,10 +63,12 @@ class Sphinx {
|
|||||||
|
|
||||||
$query->exec_time = $time_end - $time_start;
|
$query->exec_time = $time_end - $time_start;
|
||||||
|
|
||||||
$meta = $this->link->prepare("show meta like 'total_found'");
|
$meta = $this->link->prepare("show meta");
|
||||||
$meta->execute();
|
$meta->execute();
|
||||||
$R = $meta->fetch();
|
$R = $meta->fetchAll();
|
||||||
if(isset($R[1])) { $query->total_found = $R[1]; }
|
while(list ($k, $v) = each($R)){
|
||||||
|
if($v[0] == "total_found") { $query->total_found = $v[1]; break; }
|
||||||
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user