Author Topic: @back_color  (Read 1937 times)

onlywsj

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
@back_color
« on: November 21, 2012, 10:00:34 AM »
Session "default" started at 2012-11-21T11:14:27+0000
#1 ERROR: Error: Undefined variable: back_color in '/var/www/html/fengoffice/application/views/contact/card.php' on line 144 (error code: 8)
#2 ERROR: Error: Undefined variable: back_color in '/var/www/html/fengoffice/application/views/contact/card.php' on line 147 (error code: 8)
Time since start: 0.25484609603882 seconds

somebody give a help

onlywsj

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: @back_color
« Reply #1 on: November 21, 2012, 10:01:05 AM »
Version 2.2.1

apmuthu

  • Freshman
  • *
  • Posts: 28
    • View Profile
Re: @back_color
« Reply #2 on: December 26, 2012, 03:17:55 PM »
Line 147 mut be taken out and modified and inserted between lines 143 and 144:

Lines 143-148:
if ($contact instanceof ApplicationDataObject) {
    echo '<div style="margin:20px 0;'.$back_color.'">';
    echo render_custom_properties($contact);
    echo '</div>';
    $back_color = $back_color == '' ? $bc : '';
}


should be:

if ($contact instanceof ApplicationDataObject) {
     $back_color = (!isset($back_color) || ($back_color == '')) ? $bc : '';
     echo '<div style="margin:20px 0;'.$back_color.'">';
     echo render_custom_properties($contact);
     echo '</div>';
}
« Last Edit: December 26, 2012, 05:16:29 PM by apmuthu »