FIX
This commit is contained in:
parent
9ef1bb63e4
commit
0a18126ea3
|
|
@ -76,7 +76,6 @@ if (App::$user && App::$user->id) {
|
||||||
<?php if(App::ic('index')): ?>
|
<?php if(App::ic('index')): ?>
|
||||||
<?php if (App::$user):
|
<?php if (App::$user):
|
||||||
$addWithoutConfirm = Point::model()->getCountByUser(App::$user->id) > 0;
|
$addWithoutConfirm = Point::model()->getCountByUser(App::$user->id) > 0;
|
||||||
$addWithoutConfirm = false;
|
|
||||||
?>
|
?>
|
||||||
<li class="important">
|
<li class="important">
|
||||||
<a href="#" onclick="<?= $addWithoutConfirm ? 'activateAddPoint()' : 'showPointagreement()'; ?>">Добавить объект</a>
|
<a href="#" onclick="<?= $addWithoutConfirm ? 'activateAddPoint()' : 'showPointagreement()'; ?>">Добавить объект</a>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue