Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-autocampars
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-autocampars
Commits
36390957
Commit
36390957
authored
Apr 04, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TRIG_CONDITION array key
parent
5d1287b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
autocampars.php
src/autocampars.php
+3
-1
No files found.
src/autocampars.php
View file @
36390957
...
@@ -1123,8 +1123,10 @@ function init_cameras(){ // $page) { init can only be from default page as page
...
@@ -1123,8 +1123,10 @@ function init_cameras(){ // $page) { init can only be from default page as page
}
else
if
(
!
array_key_exists
(
'TRIG_CONDITION'
,
$GLOBALS
[
'trig_pars'
])
||
!
$GLOBALS
[
'trig_pars'
][
'TRIG_CONDITION'
]
||
!
isset
(
$curl_data
)){
}
else
if
(
!
array_key_exists
(
'TRIG_CONDITION'
,
$GLOBALS
[
'trig_pars'
])
||
!
$GLOBALS
[
'trig_pars'
][
'TRIG_CONDITION'
]
||
!
isset
(
$curl_data
)){
log_msg
(
"array_key_exists('TRIG_CONDITION', GLOBALS['trig_pars'] = "
.
array_key_exists
(
'TRIG_CONDITION'
,
$GLOBALS
[
'trig_pars'
]),
0
);
log_msg
(
"array_key_exists('TRIG_CONDITION', GLOBALS['trig_pars'] = "
.
array_key_exists
(
'TRIG_CONDITION'
,
$GLOBALS
[
'trig_pars'
]),
0
);
log_msg
(
'GLOBALS[trig_pars][TRIG_CONDITION] = '
.
$GLOBALS
[
'trig_pars'
][
'TRIG_CONDITION'
],
0
);
log_msg
(
'GLOBALS[trig_pars][TRIG_CONDITION] = '
.
$GLOBALS
[
'trig_pars'
][
'TRIG_CONDITION'
],
0
);
// self-triggered mode
// self-triggered mode
$trig_condition
=
$GLOBALS
[
'trig_pars'
][
'TRIG_CONDITION'
];
$trig_condition
=
(
array_key_exists
(
'TRIG_CONDITION'
,
$GLOBALS
[
'trig_pars'
]))
?
$GLOBALS
[
'trig_pars'
][
'TRIG_CONDITION'
]
:
0
;
unset
(
$GLOBALS
[
'trig_pars'
][
'TRIG_CONDITION'
]);
unset
(
$GLOBALS
[
'trig_pars'
][
'TRIG_CONDITION'
]);
unset
(
$trig_period
);
unset
(
$trig_period
);
if
(
array_key_exists
(
'TRIG_PERIOD'
,
$GLOBALS
[
'trig_pars'
])
&&
(
$GLOBALS
[
'trig_pars'
][
'TRIG_PERIOD'
]
>
255
)){
if
(
array_key_exists
(
'TRIG_PERIOD'
,
$GLOBALS
[
'trig_pars'
])
&&
(
$GLOBALS
[
'trig_pars'
][
'TRIG_PERIOD'
]
>
255
)){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment