+ Changed from MySQL to MySQLi native driver.
+ Added 2 new functions in DataBase class: fetch($query) and num_rows($query) git-svn-id: https://svn.pioder.pl/uf-svn/uF@20 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
@@ -298,7 +298,7 @@ switch(trim($_GET['mode']))
|
||||
$_POST['textedit']='';
|
||||
}
|
||||
$sql = "SELECT `lock`, `name`, `f_id` FROM ".FORUMS_TABLE." WHERE `f_id`='".intval($_GET['f'])."'";
|
||||
$forum = mysql_fetch_array(DataBase::sql_query($sql, 'GENERAL', 'Could not obtain forum information'));
|
||||
$forum = DataBase::fetch(DataBase::sql_query($sql, 'GENERAL', 'Could not obtain forum information'));
|
||||
if($forum['name']=='')
|
||||
{
|
||||
message_forum($lng['no_forum'], 'index.php');
|
||||
|
||||
Reference in New Issue
Block a user