Skip to content

Commit 6cafac4

Browse files
committed
p2p trader app - moved to separate app
1 parent c893f11 commit 6cafac4

21 files changed

Lines changed: 6 additions & 4741 deletions

include/class/Pajax.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static function processAjax()
3434
self::$options = json_decode(base64_decode($pAjax['options']), true);
3535
$action = $pAjax['action'];
3636
$actionData = $pAjax['actionData'];
37-
self::$process = $pAjax['process'];
37+
self::$process = @$pAjax['process'];
3838
if(!class_exists($class)) {
3939
$class_file = dirname($_SERVER['SCRIPT_FILENAME']) ."/inc/class/$class.php";
4040
if(file_exists($class_file)) {
@@ -43,9 +43,11 @@ static function processAjax()
4343
}
4444
self::$ajax = true;
4545
self::$class = new $class();
46-
foreach($viewData as $k => $v) {
47-
if(property_exists(self::$class, $k)) {
48-
self::$class->$k = $v;
46+
if(is_array($viewData)) {
47+
foreach($viewData as $k => $v) {
48+
if(property_exists(self::$class, $k)) {
49+
self::$class->$k = $v;
50+
}
4951
}
5052
}
5153
foreach($_POST as $k => $v) {

web/apps/p2p/app.js

Lines changed: 0 additions & 323 deletions
This file was deleted.

0 commit comments

Comments
 (0)