|
@@ -35,7 +35,7 @@ if $ARGS[0] = 'calculate_rentable_property_count':
|
|
|
:get_rentable_property_count_loop
|
|
|
gs 'homes_properties_attr', 'get_property_attr', $home_name[i]
|
|
|
if ($ARGS[1] ! 'home' and INSTR($property['type'], 'residence') = 0) and property['rental']:
|
|
|
- accessible_property['rentable_business_count'] += 1
|
|
|
+ accessible_property['rentable_business_count'] += 1
|
|
|
elseif ($ARGS[1] ! 'business' and INSTR($property['type'], 'business') = 0) and property['rental']:
|
|
|
accessible_property['rentable_rent_home_count'] += 1
|
|
|
end
|
|
@@ -65,7 +65,7 @@ if $ARGS[0] = 'set_home':
|
|
|
if $homepropcode ! '':
|
|
|
killvar 'home'
|
|
|
gs 'homes_properties_attr', 'get_property_attr', $homepropcode
|
|
|
- if INSTR($property['type'], 'residence') > 0:
|
|
|
+ if INSTR($property['type'], 'residence') > 0:
|
|
|
COPYARR 'home','property'
|
|
|
$home['current'] = $property['code']
|
|
|
if accessible_property[$home['current']] = 0: gs 'homes_properties', 'set_access', $home['current'], 1
|