Skip to content

Commit

Permalink
addSLBPortLink(): use PDOStatement::fetchColumn()
Browse files Browse the repository at this point in the history
See commit aa06682.
  • Loading branch information
infrastation committed May 23, 2016
1 parent 94383c4 commit f86811d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wwwroot/inc/slbv2.php
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ function addSLBPortLink ($link_row)
"SELECT COUNT(*) FROM VSEnabledPorts WHERE object_id = ? AND proto = ? AND vport = ?",
array ($link_row['object_id'], $link_row['proto'], $link_row['vport'])
);
if (0 < $result->fetch (PDO::FETCH_COLUMN, 0))
if (0 < $result->fetchColumn())
{
if ($do_transaction)
$dbxlink->rollBack();
Expand Down

0 comments on commit f86811d

Please sign in to comment.