Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: Incomplete tag in article editing.  (Read 2693 times)

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Incomplete tag in article editing.
« on: September 12, 2007, 09:26:46 AM »

from original bug post here
http://snewscms.com/forum/index.php?topic=5866.0

locate in form_articles() quite close to the bottom of that function

Code: [Select]
if (!empty($id)) {
echo '<p><input name="freeze" type="checkbox" id="fc"';
if ($r['commentable'] == 'FREEZ') {echo ' checked="checked" />';}
else if ($r['commentable'] == 'YES') {echo ' />';}
echo ' <label for="fc"> '.l('freeze_comments').'</label></p>';
}
and add an else line.
Code: [Select]
if (!empty($id)) {
echo '<p><input name="freeze" type="checkbox" id="fc"';
if ($r['commentable'] == 'FREEZ') {echo ' checked="checked" />';}
else if ($r['commentable'] == 'YES') {echo ' />';}
/*fixed*/ else{echo ' />';}
echo ' <label for="fc"> '.l('freeze_comments').'</label></p>';
}

« Last Edit: September 12, 2007, 02:41:19 PM by Keyrocks »
Logged
Of all the things I have lost, it is my mind that I miss the most.