Fix not showing mysql/php errors
This commit is contained in:
parent
739ad4a104
commit
5f87f442c6
1 changed files with 5 additions and 5 deletions
|
@ -123,16 +123,16 @@ public class AsyncDatabaseConnector {
|
|||
public void onFinished(String data, String error) {
|
||||
List<String>list = null;
|
||||
boolean listenerData;
|
||||
if(data==null) {
|
||||
if(data == null) {
|
||||
listenerData = false;
|
||||
errorMsg = error;
|
||||
}
|
||||
else if(booleanReturnListener!=null)
|
||||
listenerData = (data.compareTo("OK")==0);
|
||||
else {
|
||||
} else if( data.compareTo("OK") == 0){
|
||||
listenerData = true;
|
||||
} else {
|
||||
errorMsg = data;
|
||||
listenerData = false;
|
||||
}
|
||||
|
||||
booleanReturnListener.onBooleanReturn(listenerData);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue