More dbm::is_result() instead of count()

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-14 12:03:02 +01:00
parent 582b8db8e8
commit c75d6ad850
4 changed files with 5 additions and 5 deletions

View file

@ -24,7 +24,7 @@ function get_salmon_key($uri,$keyhash) {
// We have found at least one key URL
// If it's inline, parse it - otherwise get the key
if(count($ret)) {
if(count($ret) > 0) {
for($x = 0; $x < count($ret); $x ++) {
if(substr($ret[$x],0,5) === 'data:') {
if(strstr($ret[$x],','))