updated to the new Pikotools api (new Space struct)
This commit is contained in:
@@ -80,11 +80,11 @@ bool Reply::HasAccess()
|
||||
return false;
|
||||
|
||||
|
||||
PT::Space * thread_space = cur->request->item.item_content.meta_admin.FindSpace(L"thread");
|
||||
PT::Space * thread_space = cur->request->item.item_content.meta_admin.find_child_space(L"thread");
|
||||
|
||||
if( thread_space )
|
||||
{
|
||||
if( thread_space->Bool(L"closed", false) )
|
||||
if( thread_space->to_bool(L"closed", false) )
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -231,7 +231,7 @@ return DoCommand(query);
|
||||
long TDb::FindLastAnswer(long file_id)
|
||||
{
|
||||
PGresult * r = 0;
|
||||
Error status = WINIX_ERR_OK;
|
||||
//Error status = WINIX_ERR_OK;
|
||||
long last_item_id = -1;
|
||||
|
||||
try
|
||||
@@ -249,7 +249,7 @@ long TDb::FindLastAnswer(long file_id)
|
||||
}
|
||||
catch(const Error & e)
|
||||
{
|
||||
status = e;
|
||||
//status = e;
|
||||
}
|
||||
|
||||
ClearResult(r);
|
||||
|
||||
Reference in New Issue
Block a user