Skip to content

Commit 972c1ae

Browse files
committed
Fix warning
1 parent 4588a33 commit 972c1ae

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

htdocs/cabinetmed/canvas/patient/tpl/card_create.tpl.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18+
/**
19+
* @var Conf $conf
20+
* @var DoliDB $db
21+
* @var CommonObject $object
22+
*/
1823
// Protection to avoid direct call of template
1924
if (empty($conf) || ! is_object($conf)) {
2025
print "Error, template page can't be called as URL";
@@ -24,7 +29,7 @@
2429

2530
$object=$GLOBALS['object'];
2631

27-
global $db,$conf,$mysoc,$langs,$user,$hookmanager,$extrafields,$object;
32+
global $db,$conf,$mysoc,$langs,$user,$hookmanager,$extrafields,$object,$permissiontoadd;
2833

2934

3035
$socialnetworks = getArrayOfSocialNetworks();
@@ -228,7 +233,7 @@
228233
<input type="hidden" name="status" value="1">
229234
<input type="hidden" name="client" value="<?php echo $object->client; ?>">
230235
<?php
231-
if ($modCodeClient->code_auto || $modCodeFournisseur->code_auto) {
236+
if ($modCodeClient->code_auto) {
232237
print '<input type="hidden" name="code_auto" value="1">';
233238
}
234239

htdocs/cabinetmed/canvas/patient/tpl/card_edit.tpl.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
* or see http://www.gnu.org/
1717
*/
1818

19+
/**
20+
* @var Conf $conf
21+
* @var DoliDB $db
22+
* @var CommonObject $object
23+
*/
1924
// Protection to avoid direct call of template
2025
if (empty($conf) || ! is_object($conf)) {
2126
print "Error, template page can't be called as URL";

htdocs/cabinetmed/canvas/patient/tpl/card_view.tpl.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
* or see http://www.gnu.org/
1818
*/
1919

20+
/**
21+
* @var Conf $conf
22+
* @var DoliDB $db
23+
* @var CommonObject $object
24+
*/
2025
// Protection to avoid direct call of template
2126
if (empty($conf) || ! is_object($conf)) {
2227
print "Error, template page can't be called as URL";

0 commit comments

Comments
 (0)