// Removing undefined function

This commit is contained in:
mDeflotte
2011-10-20 09:14:43 +00:00
parent 54b1c7ff64
commit d21add0fed
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ class AdminOrdersStates extends AdminTab
</p>
</div>
<div class="margin-form">
<p>'.elog($this->getFieldValue($obj, 'shipped')).'
<p>
<input type="checkbox" style="vertical-align: text-bottom;" name="shipped"'.(($this->getFieldValue($obj, 'shipped') == 1) ? ' checked="checked"' : '').' id="shipped_on" value="1" />
<label class="t" for="shipped_on"> '.$this->l('Set order as shipped').'</label>
</p>
+1 -1
View File
@@ -3899,7 +3899,7 @@ class AdminProducts extends AdminTab
switch(Tools::getValue('action'))
{
case 'depends_on_stock':elog((int)Tools::getValue('value'));
case 'depends_on_stock':
if (Tools::getValue('value') === false)
return Tools::jsonEncode(array('error' => 'Undefined value'));
if ((int)Tools::getValue('value') != 0 && (int)Tools::getValue('value') != 1)