Skip to content

Commit

Permalink
syntax issue with prepared statement commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cigamit committed Mar 20, 2016
1 parent 2940d22 commit c34a62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clog_webapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function clog_view_logfile() {
$host_end = strpos($item, ']', $host_start);
$host_id = substr($item, $host_start+7, $host_end-($host_start+7));
$new_item .= htmlspecialchars(substr($item, 0, $host_start + 7)) . "<a href='" . htmlspecialchars($config['url_path'] . 'host.php?action=edit&id=' . $host_id) . "'>$host_id</a>";
$host_description = db_fetch_cell_prepered('SELECT description FROM host WHERE id = ?', array($host_id));
$host_description = db_fetch_cell_prepared('SELECT description FROM host WHERE id = ?', array($host_id));
$new_item .= '] Description[' . htmlspecialchars($host_description) . '';
$item = substr($item, $host_end);
$host_start = strpos($item, 'Device[');
Expand Down

0 comments on commit c34a62e

Please sign in to comment.