Commit 78c7d3eb authored by Celine Noirot's avatar Celine Noirot
Browse files

Update project at installation

parent 65ededd3
......@@ -1981,9 +1981,30 @@ class tx_nG6_db {
'description' => $descr
);
$res = $GLOBALS['TYPO3_DB']->exec_UPDATEquery('fe_users', 'uid='.$user_id,$fe_user_datas );
$res = $GLOBALS['TYPO3_DB']->exec_UPDATEquery('fe_users', 'uid='.$user_id, $fe_user_datas );
if ($res == True){
$res = $GLOBALS['TYPO3_DB']->exec_UPDATEquery('be_users', 'uid='.$user_id,$be_user_datas );
$res2 = $GLOBALS['TYPO3_DB']->exec_UPDATEquery('be_users', 'uid='.$user_id, $be_user_datas );
}
if ($res == True){
$queryParts = array(
'SELECT' => 'uid',
'FROM' => 'tx_nG6_project',
'WHERE' => 'name = "project_install"',
'GROUPBY' => '',
'ORDERBY' => '',
'LIMIT' => ''
);
$res = $GLOBALS['TYPO3_DB']->exec_SELECT_queryArray($queryParts);
$project_id="";
while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$project_id = $row['uid'];
}
if ($project_id != "") {
$res = $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_nG6_project', 'uid='.$project_id,$project_datas );
}
else {
$res=False;
}
}
return $res;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment