Проблем с мод

Msecurity

Registered
Значи реших да сложа мод за подкатегории на статиите но ми изписва грешка когата реша да прегледам някоя статия:

Код:
Notice: Undefined index: articles_per_page in E:\WEB\VertrigoServ\www\test\articles.php on line 113
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

Notice: Undefined index: articles_per_page in E:\WEB\VertrigoServ\www\test\articles.php on line 127

Notice: Undefined index: articles_per_page in E:\WEB\VertrigoServ\www\test\articles.php on line 127

Ето ред 112 и 113:
Код:
					"SELECT article_id, article_subject, article_snippet, article_datestamp FROM ".DB_ARTICLES."
					WHERE article_cat='".$_GET['cat_id']."' AND article_draft='0' ORDER BY ".$cdata['article_cat_sorting']." LIMIT ".$_GET['rowstart'].",".$settings['articles_per_page']

А ето го и ред 127:
Код:
				if ($rows > $settings['articles_per_page']) echo "<div align='center' style=';margin-top:5px;'>\n".makepagenav($_GET['rowstart'], $settings['articles_per_page'], $rows, 3, FUSION_SELF."?cat_id=".$_GET['cat_id']."&")."\n</div>\n";
 
112,113

" SELECT article_id, article_subject, article_snippet, article_datestamp FROM ".DB_ARTICLES." WHERE article_cat='".$_GET['cat_id']."' AND article_draft = '0' ORDER BY ".$cdata['article_cat_sorting']." LIMIT ".$_GET['rowstart'].", ".$settings['articles_per_page']."";

127

if ($rows > $settings['articles_per_page']) {
echo "<div align='center' style=';margin-top:5px;'>\n
".makepagenav($_GET['rowstart'],
$settings['articles_per_page'], $rows, 3, FUSION_SELF."?cat_id=".$_GET['cat_id']."&")."\n
</div>\n";}
 

Горе