Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Mon 3630 service template macro #7515

Merged
merged 5 commits into from
May 6, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion www/include/common/common-Func.php
Original file line number Diff line number Diff line change
Expand Up @@ -2122,10 +2122,11 @@ function getListTemplates($pearDB, $svcId, $alreadyProcessed = array())
} else {
$alreadyProcessed[] = $svcId;

$query = "SELECT * FROM service WHERE service_id = " . intval($svcId);
$query = "SELECT * FROM service WHERE service_id = " . (int)$svcId;
$stmt = $pearDB->query($query);
if ($stmt->rowCount()) {
$row = $stmt->fetchRow();
loiclau marked this conversation as resolved.
Show resolved Hide resolved
$svcTmpl[] = $row;
if ($row['service_template_model_stm_id'] !== null) {
$svcTmpl = array_merge(
$svcTmpl,
Expand Down